Version 5.0.0 beta 2
This commit is contained in:
1 parent
15c7beabc5
commit
f61b0da85d
181 files changed
+3182
-1533
No files matched your search
@@ -61,8 +61,9 @@ class unlockmembers extends Task
|
||||
( new DateTime )->sub( new DateInterval( 'PT' . Settings::i()->ipb_bruteforce_period . 'M' ) )->getTimestamp(),
|
||||
$this->member_id
|
||||
];
|
||||
$member->failed_login_count = max( iterator_to_array( Db::i()->select( 'count(login_ip_address)', 'core_login_failures', $where, NULL, NULL, 'login_ip_address' ) ) );
|
||||
|
||||
$failedLogins = iterator_to_array( Db::i()->select( 'count(login_ip_address)', 'core_login_failures', $where, NULL, NULL, 'login_ip_address' ) );
|
||||
$member->failed_login_count = count( $failedLogins ) ? max( $failedLogins ) : 0;
|
||||
$member->save();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user