@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $user->birthdate = $data->birthdate; |
| 37 | 37 | $user->aims = $data->aims; |
| 38 | 38 | |
| 39 | - if($user->update()){ |
|
| 39 | + if ($user->update()) { |
|
| 40 | 40 | |
| 41 | 41 | $token = array( |
| 42 | 42 | "iss" => $token_conf['issuer'], |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | returnError(); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - } catch (Exception $e){ |
|
| 66 | + } catch (Exception $e) { |
|
| 67 | 67 | returnForbidden($e); |
| 68 | 68 | } |
| 69 | 69 | |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $user->email = $data->email; |
| 23 | 23 | $email_exists = $user->emailExists(); |
| 24 | 24 | |
| 25 | -if($email_exists && password_verify($data->password, $user->password)){ |
|
| 25 | +if ($email_exists && password_verify($data->password, $user->password)) { |
|
| 26 | 26 | |
| 27 | 27 | $token = array( |
| 28 | 28 | "iss" => $token_conf['issuer'], |