bozo-backend/logout.py
2023-06-09 15:22:50 +02:00

10 lines
233 B
Python

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("/"))