diff --git a/core/modules/user/src/Flood/CredentialsCheckFlood.php b/core/modules/user/src/Flood/CredentialsCheckFlood.php index fd0ce9d..2b7c3b6 100644 --- a/core/modules/user/src/Flood/CredentialsCheckFlood.php +++ b/core/modules/user/src/Flood/CredentialsCheckFlood.php @@ -146,7 +146,7 @@ protected function getAccountIdentifier($ip, $name) { $account_by_name = $storage->loadByProperties(['name' => $name]); $accounts[$name] = reset($account_by_name); } - $account = $accounts['name']; + $account = $accounts[$name]; if ($account) { if ($config->get('uid_only')) { // Register flood events based on the uid only, so they apply for any