Skip to content

Commit

Permalink
Merge pull request #192 from erikkloeze/patch-1
Browse files Browse the repository at this point in the history
Banned user error message
  • Loading branch information
lonnieezell authored Apr 14, 2020
2 parents 3c044d7 + 1c3db3e commit af500f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Authentication/LocalAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public function attempt(array $credentials, bool $remember = null): bool
$ipAddress = Services::request()->getIPAddress();
$this->recordLoginAttempt($credentials['email'] ?? $credentials['username'], $ipAddress, $this->user->id ?? null, false);

$this->error = lang('Auth.userIsBanned');

$this->user = null;
return false;
}
Expand Down

0 comments on commit af500f0

Please sign in to comment.