Beispiel #1
0
def logout():
    login_providers.values()[0].logout(g.user)
    return_url = request.args.get("return_url", "/")
    if "manage/" in return_url:
        return_url = "/"
    resp = redirect(return_url)
    resp.set_cookie('token', '', expires=0)
    return resp
Beispiel #2
0
def logout():
    login_providers.values()[0].logout(g.admin)
    return redirect("/login")
Beispiel #3
0
def logout():
    login_providers.values()[0].logout(g.admin)
    return redirect("/login")