common/models/entities/User.php
public function validatePassword( $password ) {

		if( isset( $password ) && isset( $this->passwordHash ) ) {

			return Yii::$app->getSecurity()->validatePassword( $password, $this->passwordHash );
		}

		return false;
	}
public function validatePassword( $password ) {

		if( isset( $password ) && isset( $this->passwordHash ) ) {

			return Yii::$app->getSecurity()->validatePassword( $password, $this->passwordHash );
		}

		return false;
	}
public function validatePassword ( $ password ) { if ( isset ( $ password ) && isset ( $ this -> passwordHash ) ) { return Yii :: $ app -> getSecurity ( ) -> validatePassword ( $ password , $ this -> passwordHash ) ; } return false ; }
Validates user password while login.

@param type $password
@return boolean
Validates user password while login .