Merge pull request #9516 from alessandromarotta/isLockectOut-call-LoginAttempt-getByEmail

isLockedOut() in Member.php call LoginAttempt::getByEmail but it passes to it the unique_identifier_field instead $this->Email
This commit is contained in:
Robbie Averill 2020-10-01 17:43:30 -07:00 committed by GitHub
commit 7184703a57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -382,8 +382,7 @@ class Member extends DataObject
return false;
}
$idField = static::config()->get('unique_identifier_field');
$attempts = LoginAttempt::getByEmail($this->{$idField})
$attempts = LoginAttempt::getByEmail($this->Email)
->sort('Created', 'DESC')
->limit($maxAttempts);