From 3bb5c88b7c1df8e7694fa7ae0559f9dbaff7bc4c Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 31 Jan 2011 10:41:11 +0100 Subject: AuthLogin Formular hinzugefügt --- application/forms/AuthLogin.php | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 application/forms/AuthLogin.php (limited to 'application/forms/AuthLogin.php') diff --git a/application/forms/AuthLogin.php b/application/forms/AuthLogin.php new file mode 100644 index 0000000..a5b872b --- /dev/null +++ b/application/forms/AuthLogin.php @@ -0,0 +1,38 @@ +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', + )); + } + + +} + -- cgit v1.2.3-55-g7522