Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Default_Form_Password.php
- public function init()
- {
- $this->setName("password");
- $this->setMethod('post');
- $this->addElement(
- 'password', 'password', array(
- 'filters' => array('StringTrim'),
- 'description' => '8 characters minimum',
- 'validators' => array(
- array('StringLength', false, array(8, 40)),
- ),
- 'required' => true,
- 'label' => 'Password:',
- )
- );
- $this->addElement(
- 'password', 'password_confirm', array(
- 'validators' => array(
- array(
- 'identical', false, array('token' => 'password')
- )
- ),
- 'label' => 'Confirm password:',
- )
- );
Add Comment
Please, Sign In to add comment