public function validateCurrentPassword($attribute)
    {
        if (!$this->hasErrors()) {
            if (!$this->validatePassword($this->currentPassword)) {
                $this->addError($attribute, Yii::t('podium/view', 'Current password is incorrect.'));
            }
        }
    }
public function validateCurrentPassword($attribute)
    {
        if (!$this->hasErrors()) {
            if (!$this->validatePassword($this->currentPassword)) {
                $this->addError($attribute, Yii::t('podium/view', 'Current password is incorrect.'));
            }
        }
    }
public function validateCurrentPassword ( $ attribute ) { if ( ! $ this -> hasErrors ( ) ) { if ( ! $ this -> validatePassword ( $ this -> currentPassword ) ) { $ this -> addError ( $ attribute , Yii :: t ( 'podium/view' , 'Current password is incorrect.' ) ) ; } } }
Validates current password.
@param string $attribute
Validates current password .