validatePassword() public method

Validates password
public validatePassword ( string $password ) : boolean
$password string password to validate
return boolean if password provided is valid for current user
示例#1
0
 public function validateCurrentPassword($attribute)
 {
     if (!$this->_user->validatePassword($this->{$attribute})) {
         $this->addError($attribute, 'Текущий пароль указан неверно');
     }
 }