mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Update Member.php
The public function isLockedOut() in Member.php call LoginAttempt::getByEmail but serves to it the unique_identifier_field. This PR could allow to extensions to patch the use of uniqueidentifierfield (otherwise it would be necessary to extends the Member Class to override the isLockedOut function, with a lot of problems)
This commit is contained in:
parent
10efe79b93
commit
f3d1e308e5
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user