ChangePasswordForm.class.php 453 Bytes
Newer Older
Яков's avatar
first  
Яков committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
class ChangePasswordForm extends PluginUserForm 
{
  public function configure()
  {
    $this->disableCSRFProtection();
    $this->useFields(array('password'));

    $this->validatorSchema['password'] = new sfValidatorAnd(array(
      $this->validatorSchema['password'],
      new sfValidatorRegex(array('pattern' => '/[!@#$%^&*()+:;,.-_a-zA-Z0-9]{6,20}/'), array('invalid' => 'Слишком простой пароль'))
    ));

    
  }
}
?>