Fix usages of AutoLoginBackend

refs #8274
This commit is contained in:
Johannes Meyer 2015-01-27 13:45:13 +01:00
parent 47b27fcfe4
commit d99d147901
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ use Icinga\Application\Config;
use Icinga\Application\Icinga; use Icinga\Application\Icinga;
use Icinga\Application\Logger; use Icinga\Application\Logger;
use Icinga\Authentication\AuthChain; use Icinga\Authentication\AuthChain;
use Icinga\Authentication\Backend\AutoLoginBackend; use Icinga\Authentication\Backend\ExternalBackend;
use Icinga\Exception\AuthenticationException; use Icinga\Exception\AuthenticationException;
use Icinga\Exception\ConfigurationError; use Icinga\Exception\ConfigurationError;
use Icinga\Exception\NotReadableError; use Icinga\Exception\NotReadableError;
@ -82,7 +82,7 @@ class AuthenticationController extends ActionController
} }
foreach ($chain as $backend) { foreach ($chain as $backend) {
if ($backend instanceof AutoLoginBackend) { if ($backend instanceof ExternalBackend) {
continue; continue;
} }
++$backendsTried; ++$backendsTried;
@ -126,7 +126,7 @@ class AuthenticationController extends ActionController
} elseif ($request->isGet()) { } elseif ($request->isGet()) {
$user = new User(''); $user = new User('');
foreach ($chain as $backend) { foreach ($chain as $backend) {
if ($backend instanceof AutoLoginBackend) { if ($backend instanceof ExternalBackend) {
$authenticated = $backend->authenticate($user); $authenticated = $backend->authenticate($user);
if ($authenticated === true) { if ($authenticated === true) {
$auth->setAuthenticated($user); $auth->setAuthenticated($user);