We should catch all Exceptions when showing errors on the login screen

This commit is contained in:
Thomas Gelf 2014-02-12 12:57:17 +00:00
parent 92da778d37
commit f6692ba436
1 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ use Icinga\Web\Controller\ActionController;
use Icinga\Authentication\Credential;
use Icinga\Authentication\Manager as AuthManager;
use Icinga\Form\Authentication\LoginForm;
use Icinga\Exception\ConfigurationError;
use Exception;
/**
* Application wide controller for authentication
@ -75,8 +75,8 @@ class AuthenticationController extends ActionController
$this->redirectNow($redirectUrl);
}
}
} catch (ConfigurationError $configError) {
$this->view->errorInfo = $configError->getMessage();
} catch (Exception $e) {
$this->view->errorInfo = $e->getMessage();
}
}