auth: increase backends tried counter AFTER skipping autologin backends
This commit is contained in:
parent
defa02a609
commit
a5e9d6cf0d
|
@ -111,12 +111,10 @@ class AuthenticationController extends ActionController
|
|||
$backendsWithError = 0;
|
||||
|
||||
foreach ($chain as $backend) {
|
||||
++$backendsTried;
|
||||
|
||||
if ($backend instanceof AutoLoginBackend) {
|
||||
continue;
|
||||
}
|
||||
|
||||
++$backendsTried;
|
||||
try {
|
||||
$authenticated = $backend->authenticate($user, $password);
|
||||
} catch (AuthenticationException $e) {
|
||||
|
|
Loading…
Reference in New Issue