* @author Icinga Development Team */ // {{{ICINGA_LICENSE_HEADER}}} namespace Icinga\Form\Authentication; use Icinga\Web\Form; /** * Class LoginForm */ class LoginForm extends Form { /** * Disable CSRF protection * @var bool */ protected $tokenDisabled = true; /** * Interface how the form should be created */ protected function create() { $this->setName('login'); $this->addElement( 'text', 'username', array( 'label' => t('Username'), 'required' => true ) ); $this->addElement( 'password', 'password', array( 'label' => t('Password'), 'required' => true ) ); $this->addElement( 'submit', 'submit', array( 'label' => t('Login'), 'class' => 'pull-right' ) ); } }