Exemplo n.º 1
0
async def delete_self():
    user = await current_user.user

    await auth.delete_user(user)
    logout_user()

    await flash("Your account was deleted")

    return '', 204
Exemplo n.º 2
0
 async def wrapper(*args: Any, **kwargs: Any) -> Any:
     if current_user and current_user.auth_id == "guest":
         logout_user()
         raise Unauthorized()
     else:
         return await func(*args, **kwargs)
Exemplo n.º 3
0
async def logout():
    logout_user()
    return redirect(url_for("login"))
Exemplo n.º 4
0
async def logout() -> Any:
    logout_user()
    return redirect(url_for("ux.index"))
Exemplo n.º 5
0
 async def logout():
     logout_user()
     await flash("You have been logged out")
     return redirect(url_for("login"))
Exemplo n.º 6
0
async def logout():
    logout_user()
    await flash("You have been logged out", "green")
    return redirect(url_for("portal.portal"))
Exemplo n.º 7
0
async def auth_logout():
    """User logout"""
    logout_user()
    return {}, 200