From 59adaff541bcb06280d3f529a33ecd00ff0c43b2 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 10 Jan 2023 14:23:08 +0530 Subject: [PATCH] feat: linter fixes --- app/controllers/api/account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 3ed05fdabd..43261dc176 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -85,7 +85,7 @@ App::post('/v1/account/code/:code') if (!empty($whitelistEmails) && !\in_array($email, $whitelistEmails)) { throw new Exception(Exception::USER_EMAIL_NOT_WHITELISTED); } - + if (!empty($whitelistIPs) && !\in_array($request->getIP(), $whitelistIPs)) { throw new Exception(Exception::USER_IP_NOT_WHITELISTED); } @@ -141,7 +141,7 @@ App::post('/v1/account/code/:code') ->setStatusCode(Response::STATUS_CODE_CREATED) ->dynamic($user, Response::MODEL_ACCOUNT); }); - + App::post('/v1/account') ->desc('Create Account') ->groups(['api', 'account', 'auth'])