Completed
Push — master ( 691ef6...986102 )
by Patrick
43s
created
api/v1/class.SecureAPI.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@
 block discarded – undo
10 10
     public function login($request, $response, $args)
11 11
     {
12 12
         $params = $request->getParams();
13
-        if(!isset($params['username']) || !isset($params['password']))
13
+        if (!isset($params['username']) || !isset($params['password']))
14 14
         {
15 15
             return $response->withStatus(400);
16 16
         }
17 17
         $auth = \Flipside\AuthProvider::getInstance();
18 18
         $res = $auth->login($params['username'], $params['password']);
19
-        if($res === false)
19
+        if ($res === false)
20 20
         {
21 21
             return $response->withStatus(403);
22 22
         }
Please login to merge, or discard this patch.