Revert changes of LoginForm

This commit is contained in:
Eric Lippmann 2016-01-18 13:44:54 +01:00
parent 89bf2b53a9
commit 26d6362657
1 changed files with 0 additions and 21 deletions

View File

@ -3,13 +3,10 @@
namespace Icinga\Forms\Authentication;
use Icinga\Application\Config;
use Icinga\Application\Icinga;
use Icinga\Authentication\Auth;
use Icinga\Authentication\User\ExternalBackend;
use Icinga\User;
use Icinga\Web\Form;
use Icinga\Web\StyleSheet;
use Icinga\Web\Url;
/**
@ -56,24 +53,6 @@ class LoginForm extends Form
'class' => isset($formData['username']) ? 'autofocus' : ''
)
);
if (! (bool) Config::app()->get('themes', 'disabled', false)) {
$themes = Icinga::app()->getThemes();
if (count($themes) > 1) {
$defaultTheme = Config::app()->get('themes', 'default', StyleSheet::DEFAULT_THEME);
if (isset($themes[$defaultTheme])) {
$themes[$defaultTheme] .= ' (' . $this->translate('default') . ')';
}
$this->addElement(
'select',
'theme',
array(
'label' => $this->translate('Theme', 'Form element label'),
'multiOptions' => $themes,
//'value' => null
)
);
}
}
$this->addElement(
'hidden',
'redirect',