mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
force status codes to be returned
This commit is contained in:
parent
1f624e28bc
commit
1c2ba3a53e
@ -93,7 +93,7 @@ class LoginController extends BaseController
|
||||
if ($this->hasTooManyLoginAttempts($request)) {
|
||||
$this->fireLockoutEvent($request);
|
||||
|
||||
return response()->json(['message' => 'Too many login attempts, you are being throttled']);
|
||||
return response()->json(['message' => 'Too many login attempts, you are being throttled'], 401);
|
||||
}
|
||||
|
||||
if ($this->attemptLogin($request))
|
||||
@ -102,7 +102,7 @@ class LoginController extends BaseController
|
||||
|
||||
$this->incrementLoginAttempts($request);
|
||||
|
||||
return response()->json(['message' => ctrans('texts.invalid_credentials')]);
|
||||
return response()->json(['message' => ctrans('texts.invalid_credentials')], 401);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user