From 5359f6e8de1c409f4cb717c700de63409dfb3a49 Mon Sep 17 00:00:00 2001 From: sebastian wagner Date: Mon, 4 Jul 2011 17:37:02 +0200 Subject: login formular --- application/forms/NewPassword.php | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 application/forms/NewPassword.php (limited to 'application/forms/NewPassword.php') diff --git a/application/forms/NewPassword.php b/application/forms/NewPassword.php new file mode 100644 index 0000000..d3ca34b --- /dev/null +++ b/application/forms/NewPassword.php @@ -0,0 +1,48 @@ +personID = $personID; + } + + public function init() + { + $this->setName("NewPassword"); + $this->setMethod('post'); + + $this->addElement('hidden', 'personID', array( + 'value' => $this->personID + )); + + $this->addElement('password', 'password', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Password:', + )); + + $this->addElement('submit', 'savePassword', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Save', + )); + } + + +} + -- cgit v1.2.3-55-g7522