mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4133 from nimeso/patch-1
This commit is contained in:
commit
229a2b9217
@ -1378,7 +1378,12 @@ class Member extends DataObject implements TemplateGlobalProvider {
|
|||||||
));
|
));
|
||||||
|
|
||||||
$mainFields->removeByName($self->config()->hidden_fields);
|
$mainFields->removeByName($self->config()->hidden_fields);
|
||||||
|
|
||||||
|
// make sure that the "LastVisited" field exists
|
||||||
|
// it may have been removed using $self->config()->hidden_fields
|
||||||
|
if($mainFields->fieldByName("LastVisited")){
|
||||||
$mainFields->makeFieldReadonly('LastVisited');
|
$mainFields->makeFieldReadonly('LastVisited');
|
||||||
|
}
|
||||||
|
|
||||||
if( ! $self->config()->lock_out_after_incorrect_logins) {
|
if( ! $self->config()->lock_out_after_incorrect_logins) {
|
||||||
$mainFields->removeByName('FailedLoginCount');
|
$mainFields->removeByName('FailedLoginCount');
|
||||||
|
Loading…
Reference in New Issue
Block a user