25 lines
655 B
PHP
25 lines
655 B
PHP
<?php
|
|
|
|
class Application_Form_Default_Index_Auth_ResetPw extends Zend_Form
|
|
{
|
|
|
|
public function init()
|
|
{
|
|
|
|
$this->addElement('text', 'password', array(
|
|
'filters' => array('StringTrim'),
|
|
'required'=>true,
|
|
'validators' => array(array('StringLength', true, array(6, 25)))
|
|
));
|
|
|
|
$this->addElement('text', 'password2', array(
|
|
'filters' => array('StringTrim'),
|
|
'required'=>true,
|
|
'validators' => array(array('StringLength', true,
|
|
array(6, 25)),
|
|
array('identical', false, array('token' => 'password'))),
|
|
));
|
|
|
|
}
|
|
}
|