bozo-backend/logout.py

10 lines
233 B
Python
Raw Normal View History

2023-06-09 09:22:50 -04:00
import flask
page = flask.Blueprint("logout", __name__, template_folder="templates")
@page.route("/logout")
def show():
if (flask.session.get("email")):
flask.session.pop("email", None)
return (flask.redirect("/"))