ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 10691


Ignore:
Timestamp:
Feb 8, 2009, 7:13:47 PM (11 years ago)
Author:
ebihara
Message:

#3262:fixed sfValidatorPassword accepts non-alphabetical and non-numerical characters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/validator/sfValidatorPassword.class.php

    r10003 r10691  
    1616 * @author     Kousuke Ebihara <ebihara@tejimaya.com>
    1717 */
    18 class sfValidatorPassword extends sfValidatorString
     18class sfValidatorPassword extends sfValidatorRegex
    1919{
     20  /**
     21   * @see sfValidatorPassword
     22   */
     23  protected function configure($options = array(), $messages = array())
     24  {
     25    parent::configure($options, $messages);
     26
     27    $this->setOption('pattern', '/[a-z0-9]+/i');
     28  }
     29
    2030  /**
    2131   * @see sfValidatorString
Note: See TracChangeset for help on using the changeset viewer.