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
def logout(): login_providers.values()[0].logout(g.admin) return redirect("/login")