Fix disabling the account

This commit is contained in:
Richard Henkenjohann committed 2020-10-06 23:28:14 +02:00
1 parent ddaa397010
commit 7d17d3a9c6
1 file changed
+1 -1
@@ -51,7 +51,7 @@ final class InvalidAttemptsListener
// Check for <=1 because the loginCount will be decreased after this hook call.
if ($user->loginCount <= 1) {
// Disable the account
$user->disable = time();
$user->disable = '1';
// Reset the login count as we do not want the default routine to lock the account.
// No need to save as the user will be saved nonetheless.
++$user->loginCount;