summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/NewPassword.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-03-24 11:19:29 +0100
committerBjörn Geiger2011-03-24 11:19:29 +0100
commitd0d15777332c373d92a949e43b6f9c44900dd8d2 (patch)
treea7c3281bd3a6971214d43b76537864928a505f1a /application/modules/user/forms/NewPassword.php
parentRollenverwaltung in Dev Modul (diff)
downloadpbs2-d0d15777332c373d92a949e43b6f9c44900dd8d2.tar.gz
pbs2-d0d15777332c373d92a949e43b6f9c44900dd8d2.tar.xz
pbs2-d0d15777332c373d92a949e43b6f9c44900dd8d2.zip
Passwort Recovery, Mailversand funktioniert wahrscheinlich nicht
Diffstat (limited to 'application/modules/user/forms/NewPassword.php')
-rw-r--r--application/modules/user/forms/NewPassword.php38
1 files changed, 38 insertions, 0 deletions
diff --git a/application/modules/user/forms/NewPassword.php b/application/modules/user/forms/NewPassword.php
new file mode 100644
index 0000000..5b86eab
--- /dev/null
+++ b/application/modules/user/forms/NewPassword.php
@@ -0,0 +1,38 @@
+<?php
+
+class user_Form_NewPassword extends Zend_Form
+{
+ private $personID;
+
+ public function setPersonID($personID){
+ $this->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',
+ ));
+ }
+
+
+}
+