mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-19 05:53:51 -04:00
13 lines
318 B
Python
13 lines
318 B
Python
from flask import redirect, url_for
|
|
from flask_login import current_user
|
|
|
|
from app.main import main
|
|
|
|
|
|
@main.route("/sign-out", methods=(["GET"]))
|
|
def sign_out():
|
|
# An AnonymousUser does not have an id
|
|
if current_user.is_authenticated:
|
|
current_user.sign_out()
|
|
return redirect(url_for("main.index"))
|