skeeks\cms\models\forms\PasswordChangeForm::validateNewPassword PHP Метод

validateNewPassword() публичный Метод

This method serves as the inline validation for password.
public validateNewPassword ( string $attribute, array $params )
$attribute string the attribute currently being validated
$params array the additional name-value pairs given in the rule
    public function validateNewPassword($attribute, $params)
    {
        if ($this->new_password_confirm != $this->new_password) {
            $this->addError($attribute, \Yii::t('skeeks/cms', 'New passwords do not match'));
        }
    }