public function checkUserCredentials($username, $password)
	{
		// allow authentication via email, just like in the hub
		if (strpos($username, '@'))
		{
			$username = $this->getUsernameFromEmail($username);
		}

		// use hubzero password library to compare stored password with sent password
		$match = Password::passwordMatches($username, $password, true);

		// return if match was found
		return (bool) $match;
	}
public function checkUserCredentials($username, $password)
	{
		// allow authentication via email, just like in the hub
		if (strpos($username, '@'))
		{
			$username = $this->getUsernameFromEmail($username);
		}

		// use hubzero password library to compare stored password with sent password
		$match = Password::passwordMatches($username, $password, true);

		// return if match was found
		return (bool) $match;
	}
public function checkUserCredentials ( $ username , $ password ) { // allow authentication via email, just like in the hub if ( strpos ( $ username , '@' ) ) { $ username = $ this -> getUsernameFromEmail ( $ username ) ; } // use hubzero password library to compare stored password with sent password $ match = Password :: passwordMatches ( $ username , $ password , true ) ; // return if match was found return ( bool ) $ match ; }
Check user credentials

@param   string  $username  User's username
@param   string  $password  User's password
@return  bool    Result of username/password check
Check user credentials