We should catch all Exceptions when showing errors on the login screen
This commit is contained in:
parent
92da778d37
commit
f6692ba436
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue