Skip to content

Commit

Permalink
Merge pull request #9516 from alessandromarotta/isLockectOut-call-Log…
Browse files Browse the repository at this point in the history
…inAttempt-getByEmail

isLockedOut() in Member.php call LoginAttempt::getByEmail but it passes to it the unique_identifier_field instead $this->Email
  • Loading branch information
robbieaverill committed Oct 2, 2020
2 parents 478d487 + f3d1e30 commit 7184703
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Security/Member.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,7 @@ public function isLockedOut()
return false;
}

$idField = static::config()->get('unique_identifier_field');
$attempts = LoginAttempt::getByEmail($this->{$idField})
$attempts = LoginAttempt::getByEmail($this->Email)
->sort('Created', 'DESC')
->limit($maxAttempts);

Expand Down

0 comments on commit 7184703

Please sign in to comment.