models/User.php
/**
     * Validates password
     *
     * @param string $password password to validate
     * @return bool if password provided is valid for current user
     */
Validates password
@param string $password password to validate
@return bool if password provided is valid for current user
Validates password @param string $password password to validate @return bool if password provided is valid for current user
public function validatePassword($password)
  {
		return \Yii::$app->getSecurity()->validatePassword($password, $this->password_hash);
   }
public function validatePassword ( $ password ) { return \ Yii :: $ app -> getSecurity ( ) -> validatePassword ( $ password , $ this -> password_hash ) ; }
Validates password
 @param string $password password to validate
 @return bool if password provided is valid for current user
Validates password @param string $password password to validate @return bool if password provided is valid for current user
//      return $this->password === $password;