src/models/User.php
public function validatePassword($password)
    {
        return Yii::$app->security->validatePassword($password.$this->password_salt, $this->password);
    }
public function validatePassword($password)
    {
        return Yii::$app->security->validatePassword($password.$this->password_salt, $this->password);
    }
public function validatePassword ( $ password ) { return Yii :: $ app -> security -> validatePassword ( $ password . $ this -> password_salt , $ this -> password ) ; }
Validates the password for the current given user.

@param string $password The plain user input password.
@return boolean
Validates the password for the current given user .