AuthenticationPage: Show the external-auth note as info form-notification

This commit is contained in:
Johannes Meyer 2015-07-30 15:57:06 +02:00
parent 16a964cb20
commit a8415caf24

View File

@ -31,11 +31,14 @@ class AuthenticationPage extends Form
public function createElements(array $formData) public function createElements(array $formData)
{ {
if (isset($formData['type']) && $formData['type'] === 'external' && !isset($_SERVER['REMOTE_USER'])) { if (isset($formData['type']) && $formData['type'] === 'external' && !isset($_SERVER['REMOTE_USER'])) {
$this->addDescription($this->translate( $this->info(
$this->translate(
'You\'re currently not authenticated using any of the web server\'s authentication ' 'You\'re currently not authenticated using any of the web server\'s authentication '
. 'mechanisms. Make sure you\'ll configure such, otherwise you\'ll not be able to ' . 'mechanisms. Make sure you\'ll configure such, otherwise you\'ll not be able to '
. 'log into Icinga Web 2.' . 'log into Icinga Web 2.'
)); ),
false
);
} }
$backendTypes = array(); $backendTypes = array();