diff options
| author | Björn Geiger | 2011-03-21 10:06:49 +0100 |
|---|---|---|
| committer | Björn Geiger | 2011-03-21 10:06:49 +0100 |
| commit | e4d3c4db0929770ebf70fd0d943821c5ca128519 (patch) | |
| tree | a4fe4dd820d6fa705ff26460aa9ecdcf2efc6418 /application/modules/user/forms/Login.php | |
| parent | idee mit untergruppen herausfinden (diff) | |
| download | pbs2-e4d3c4db0929770ebf70fd0d943821c5ca128519.tar.gz pbs2-e4d3c4db0929770ebf70fd0d943821c5ca128519.tar.xz pbs2-e4d3c4db0929770ebf70fd0d943821c5ca128519.zip | |
Login in User Module
Diffstat (limited to 'application/modules/user/forms/Login.php')
| -rw-r--r-- | application/modules/user/forms/Login.php | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/application/modules/user/forms/Login.php b/application/modules/user/forms/Login.php index 58c5cc9..342e0b2 100644 --- a/application/modules/user/forms/Login.php +++ b/application/modules/user/forms/Login.php @@ -5,7 +5,32 @@ class user_Form_Login extends Zend_Form public function init() { - /* Form Elements & Other Definitions Here ... */ + $this->setName("Login"); + $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', + )); } |
