Auth_Jelly::force_login PHP Method

force_login() public method

Forces a user to be logged in, without specifying a password.
public force_login ( $user ) : boolean
return boolean
    public function force_login($user)
    {
        // Make sure we have a user object
        $user = $this->_get_object($user);
        // Mark the session as forced, to prevent users from changing account information
        $_SESSION['auth_forced'] = TRUE;
        // Run the standard completion
        $this->complete_login($user);
    }