"""Handler for logging out"""

# Copyright © 2017 <NAME> <<EMAIL>>
# Copyright © 2017 <NAME> <<EMAIL>>

from BackendServer.handlers.BaseHandler import BaseHandler


class LogoutHandler(BaseHandler):
    """
    Handlers for the logout operations
    """
    def data_received(self, chunk):
        pass

    def get(self):
        self.clear_cookie("user")
        self.redirect("/")

"""Handler for logging out"""

# Copyright © 2017 <NAME> <<EMAIL>>
# Copyright © 2017 <NAME> <<EMAIL>>

from BackendServer.handlers.BaseHandler import BaseHandler


class LogoutHandler(BaseHandler):
    """
    Handlers for the logout operations
    """
    def data_received(self, chunk):
        pass

    def get(self):
        self.clear_cookie("user")
        self.redirect("/")

Handler for logging out # Copyright © 2017 <NAME> <<EMAIL>> # Copyright © 2017 <NAME> <<EMAIL>> Handlers for the logout operations