diff options
Diffstat (limited to 'application/modules/user/forms/NewPassword.php')
| -rw-r--r-- | application/modules/user/forms/NewPassword.php | 82 |
1 files changed, 40 insertions, 42 deletions
diff --git a/application/modules/user/forms/NewPassword.php b/application/modules/user/forms/NewPassword.php index 915620d..3d84406 100644 --- a/application/modules/user/forms/NewPassword.php +++ b/application/modules/user/forms/NewPassword.php @@ -1,47 +1,45 @@ -<?php +<? php /* * Copyright (c) 2011 - OpenSLX GmbH, RZ Uni Freiburg - * This program is free software distributed under the GPL version 2. - * See http://gpl.openslx.org/ - * - * If you have any feedback please consult http://feedback.openslx.org/ and - * send your suggestions, praise, or complaints to feedback@openslx.org - * - * General information about OpenSLX can be found at http://openslx.org/ - */ - -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', - )); - } +* This program is free software distributed under the GPL version 2. +* See http://gpl.openslx.org/ +* +* If you have any feedback please consult http://feedback.openslx.org/ and +* send your suggestions, praise, or complaints to feedback@openslx.org +* +* General information about OpenSLX can be found at http://openslx.org/ +*/ + +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', + )); + } } |
