Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
fix: make session permanent
Browse files Browse the repository at this point in the history
  • Loading branch information
zdimension committed Dec 8, 2023
1 parent f592a52 commit f6de999
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Contents/Code/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ def login(redirect_uri="/"):

@app.route("/login", methods=["POST"])
def login_post():
session.permanent = True
session["token"] = flask.request.form["token"]
if not is_logged_in():
return flask.Response(status=401)
Expand Down

0 comments on commit f6de999

Please sign in to comment.