@@ -65,7 +65,7 @@ |
||
| 65 | 65 | * Get the response for a failed password reset link. |
| 66 | 66 | * |
| 67 | 67 | * @param Request $request |
| 68 | - * @param $response |
|
| 68 | + * @param string $response |
|
| 69 | 69 | * @return mixed |
| 70 | 70 | */ |
| 71 | 71 | protected function sendResetLinkFailedResponse(Request $request, $response) |
@@ -68,7 +68,9 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | protected function attemptLogin(Request $request) |
| 70 | 70 | { |
| 71 | - if ($this->username() === 'email') return $this->attemptLoginAtAuthenticatesUsers($request); |
|
| 71 | + if ($this->username() === 'email') { |
|
| 72 | + return $this->attemptLoginAtAuthenticatesUsers($request); |
|
| 73 | + } |
|
| 72 | 74 | if ( ! $this->attemptLoginAtAuthenticatesUsers($request)) { |
| 73 | 75 | return $this->attempLoginUsingUsernameAsAnEmail($request); |
| 74 | 76 | } |