src/Auth/AuthManager.php
public function authenticate( $uname, $password ) {
		$user = $this->manager->getUserData( $uname );
		$check = Password::comparePasswordToHash( $password, $user->getPassword() );
		if ( $check && !$user->isBlocked() ) {
			$this->login( $user );
			return true;

		} else {
			return false;
		}
	}
public function authenticate( $uname, $password ) {
		$user = $this->manager->getUserData( $uname );
		$check = Password::comparePasswordToHash( $password, $user->getPassword() );
		if ( $check && !$user->isBlocked() ) {
			$this->login( $user );
			return true;

		} else {
			return false;
		}
	}
public function authenticate ( $ uname , $ password ) { $ user = $ this -> manager -> getUserData ( $ uname ) ; $ check = Password :: comparePasswordToHash ( $ password , $ user -> getPassword ( ) ) ; if ( $ check && ! $ user -> isBlocked ( ) ) { $ this -> login ( $ user ) ; return true ; } else { return false ; } }
Attempt to authenticate a user.
@param string $uname Username
@param string $password Password
@return bool True if authentication is successful, false otherwise
Attempt to authenticate a user .