auth: increase backends tried counter AFTER skipping autologin backends

This commit is contained in:
Eric Lippmann 2014-06-06 09:33:29 +02:00
parent defa02a609
commit a5e9d6cf0d
1 changed files with 1 additions and 3 deletions

View File

@ -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) {