summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/Login.php
diff options
context:
space:
mode:
authormichael pereira2011-03-21 10:52:51 +0100
committermichael pereira2011-03-21 10:52:51 +0100
commit3a59301fdf10fcc0ecc3a56db18f3a36cc0c1aac (patch)
treed70593ed8261f466b41d21731421dfb6489d7dfa /application/modules/user/forms/Login.php
parentPreboot Controller eingerichtet (diff)
parentLogin in User Module (diff)
downloadpbs2-3a59301fdf10fcc0ecc3a56db18f3a36cc0c1aac.tar.gz
pbs2-3a59301fdf10fcc0ecc3a56db18f3a36cc0c1aac.tar.xz
pbs2-3a59301fdf10fcc0ecc3a56db18f3a36cc0c1aac.zip
zfproject
Diffstat (limited to 'application/modules/user/forms/Login.php')
-rw-r--r--application/modules/user/forms/Login.php27
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',
+ ));
}