public static function isValidPassword($username , $password)
	{
		if ( ! self::userExists( $username ) ) return false;
		$compute = self::getPasswordHash($username , $password);

		return ( $compute === self::$auth['users'][$username]['pwd'] );
	}
public static function isValidPassword($username , $password)
	{
		if ( ! self::userExists( $username ) ) return false;
		$compute = self::getPasswordHash($username , $password);

		return ( $compute === self::$auth['users'][$username]['pwd'] );
	}
public static function isValidPassword ( $ username , $ password ) { if ( ! self :: userExists ( $ username ) ) return false ; $ compute = self :: getPasswordHash ( $ username , $ password ) ; return ( $ compute === self :: $ auth [ 'users' ] [ $ username ] [ 'pwd' ] ) ; }
Tell whether a password is valid or not

@param string $username the username
@param string $password the password

@return boolean
Tell whether a password is valid or not