mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
commit
7184703a57
@ -382,8 +382,7 @@ class Member extends DataObject
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$idField = static::config()->get('unique_identifier_field');
|
$attempts = LoginAttempt::getByEmail($this->Email)
|
||||||
$attempts = LoginAttempt::getByEmail($this->{$idField})
|
|
||||||
->sort('Created', 'DESC')
|
->sort('Created', 'DESC')
|
||||||
->limit($maxAttempts);
|
->limit($maxAttempts);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user