diff options
author | Sebastian Wagner | 2011-03-25 14:05:02 +0100 |
---|---|---|
committer | Sebastian Wagner | 2011-03-25 14:05:02 +0100 |
commit | 74b5442e180e2c42d19d1b8c411c503d7c47f0a4 (patch) | |
tree | 661e4cec9221a4afeca0beceda6c723a12bcf01f /application/modules/fbgui/forms | |
parent | test (diff) | |
download | pbs2-74b5442e180e2c42d19d1b8c411c503d7c47f0a4.tar.gz pbs2-74b5442e180e2c42d19d1b8c411c503d7c47f0a4.tar.xz pbs2-74b5442e180e2c42d19d1b8c411c503d7c47f0a4.zip |
fbgui auth configuriert
Diffstat (limited to 'application/modules/fbgui/forms')
-rw-r--r-- | application/modules/fbgui/forms/Login.php | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/application/modules/fbgui/forms/Login.php b/application/modules/fbgui/forms/Login.php index da9ac3a..6f50627 100644 --- a/application/modules/fbgui/forms/Login.php +++ b/application/modules/fbgui/forms/Login.php @@ -5,7 +5,32 @@ class fbgui_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', + )); } |