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