mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
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;
|
$backendsWithError = 0;
|
||||||
|
|
||||||
foreach ($chain as $backend) {
|
foreach ($chain as $backend) {
|
||||||
++$backendsTried;
|
|
||||||
|
|
||||||
if ($backend instanceof AutoLoginBackend) {
|
if ($backend instanceof AutoLoginBackend) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
++$backendsTried;
|
||||||
try {
|
try {
|
||||||
$authenticated = $backend->authenticate($user, $password);
|
$authenticated = $backend->authenticate($user, $password);
|
||||||
} catch (AuthenticationException $e) {
|
} catch (AuthenticationException $e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user