src/EntityDescriptor/User/AbstractUser.php
public static function httpLogin() {
		$user = static::get(array(
			'where' => 'name LIKE '.static::formatValue($_SERVER['PHP_AUTH_USER']),
// 			'number' => 1,
			'output' => SQLAdapter::OBJECT
		));
		if( empty($user) )  {
			static::throwNotFound();
		}
		if( $user->password != static::hashPassword($_SERVER['PHP_AUTH_PW']) )  {
			static::throwException("wrongPassword");
		}
		$user->logout();
		$user->login();
	}
public static function httpLogin() {
		$user = static::get(array(
			'where' => 'name LIKE '.static::formatValue($_SERVER['PHP_AUTH_USER']),
// 			'number' => 1,
			'output' => SQLAdapter::OBJECT
		));
		if( empty($user) )  {
			static::throwNotFound();
		}
		if( $user->password != static::hashPassword($_SERVER['PHP_AUTH_PW']) )  {
			static::throwException("wrongPassword");
		}
		$user->logout();
		$user->login();
	}
public static function httpLogin ( ) { $ user = static :: get ( array ( 'where' => 'name LIKE ' . static :: formatValue ( $ _SERVER [ 'PHP_AUTH_USER' ] ) , // 			'number' => 1, 'output' => SQLAdapter :: OBJECT ) ) ; if ( empty ( $ user ) ) { static :: throwNotFound ( ) ; } if ( $ user -> password != static :: hashPassword ( $ _SERVER [ 'PHP_AUTH_PW' ] ) ) { static :: throwException ( "wrongPassword" ) ; } $ user -> logout ( ) ; $ user -> login ( ) ; }
Log in an user from HTTP authentication according to server variables PHP_AUTH_USER and PHP_AUTH_PW
Log in an user from HTTP authentication according to server variables PHP_AUTH_USER and PHP_AUTH_PW