@@ -10,13 +10,13 @@ |
||
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 | } |