public function logout()
    {
        $username = $this->httpRequest()->post('username');
        $session = $this->httpRequest()->post('authToken');

        $this->getLoginInstance()->revokeSessions($username, $session);

        return ['result' => 'success'];
    }