public static function login($userLogin, $userPassword)
    {
        try {
            $user = self::authenticate($userLogin, $userPassword);
            $loggedIn = self::startSession($user);
        } catch (common_user_auth_AuthFailedException $e) {
            $loggedIn = false;
        }
        return $loggedIn;
    }
public static function login($userLogin, $userPassword)
    {
        try {
            $user = self::authenticate($userLogin, $userPassword);
            $loggedIn = self::startSession($user);
        } catch (common_user_auth_AuthFailedException $e) {
            $loggedIn = false;
        }
        return $loggedIn;
    }
public static function login ( $ userLogin , $ userPassword ) { try { $ user = self :: authenticate ( $ userLogin , $ userPassword ) ; $ loggedIn = self :: startSession ( $ user ) ; } catch ( common_user_auth_AuthFailedException $ e ) { $ loggedIn = false ; } return $ loggedIn ; }
Login a user using login, password

@param string $userLogin
@param string $userPassword
@return boolean
Login a user using login password