mirror of
https://github.com/flarum/core.git
synced 2025-10-24 05:06:05 +02:00
Have a go at some error handling
Still not happy with how this is all fitting together. But good enough for now
This commit is contained in:
@@ -29,7 +29,7 @@ class TokenAction extends BaseAction
|
||||
$user = $this->users->findByIdentification($identification);
|
||||
|
||||
if (! $user || ! $user->checkPassword($password)) {
|
||||
return $this->respondWithError('invalidLogin', 401);
|
||||
return $this->respondWithError('invalidCredentials', 401);
|
||||
}
|
||||
|
||||
$command = new GenerateAccessTokenCommand($user->id);
|
||||
|
||||
Reference in New Issue
Block a user