Decorator to logout user
    :param f:
    :return:

def logout_user(f):
    """
    Decorator to logout user
    :param f:
    :return:
    """

    @functools.wraps(f)
    def deco(*a, **kw):
        signals.user_logout(lambda: flask_login.current_user)
        flask_login.logout_user()
        return f(*a, **kw)

    return deco