Skip to content

Commit

Permalink
Merge pull request #2 from lonnieezell/develop
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
nControl88 authored Apr 14, 2020
2 parents 80058c9 + af500f0 commit d3f46d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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
1 change: 0 additions & 1 deletion src/Models/LoginModel.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php namespace Myth\Auth\Models;

use CodeIgniter\Model;
use Myth\Auth\Entities\User;

class LoginModel extends Model
{
Expand Down

0 comments on commit d3f46d1

Please sign in to comment.