public function loginAsUser($userId, $originalUserId)
    {
        $this->session->put('sudosu.has_sudoed', true);
        $this->session->put($this->sessionKey, $originalUserId);

        $this->auth->loginUsingId($userId);
    }