10 lines
233 B
Python
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("/"))
|