summaryrefslogblamecommitdiffstats
path: root/application/forms/Login.php
blob: d9084ec28263fbb6096c05a8225ce635fbe5609c (plain) (tree)















































                                                                           
<?php
/*
 * Copyright (c) 2011 - OpenSLX GmbH, RZ Uni Freiburg
 * This program is free software distributed under the GPL version 2.
 * See http://gpl.openslx.org/
 *
 * If you have any feedback please consult http://feedback.openslx.org/ and
 * send your suggestions, praise, or complaints to feedback@openslx.org
 *
 * General information about OpenSLX can be found at http://openslx.org/
 */

class Application_Form_Login extends Zend_Form
{

    public function init()
    {
        $this->setName("LoginForm");
		$this->setMethod('post');
	
		$this->addElement('text', 'email', array(
			'filters' => array('StringTrim', 'StringToLower'),
			'validators' => array(
				array('StringLength', false, array(0, 50)),
			),
			'required' => true,
			'label' => 'E-Mail:',
		));

		$this->addElement('password', 'password', array(
            'filters'    => array('StringTrim'),
            'validators' => array(
                array('StringLength', false, array(0, 50)),
            ),
            'required'   => true,
            'label'      => 'Password:',
        ));

        $this->addElement('submit', 'login', array(
            'required' => false,
            'ignore'   => true,
            'label'    => 'Login',
        ));  
    }


}