Skip to content

Commit

Permalink
Moved session.permanent to successful login
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-oscarsson committed Dec 14, 2023
1 parent 1cb39d2 commit fb728d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mxcubeweb/routes/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ def login():
res = make_response(jsonify({"msg": "Could not authenticate"}), 200)
else:
res = make_response(jsonify({"msg": ""}), 200)

session.permanent = True
session.permanent = True

return res

Expand Down

0 comments on commit fb728d7

Please sign in to comment.