Fix an issue where session id no longer exists

fix-invalid-session-situation
Kevin Chung 2020-05-05 19:41:45 -04:00
parent 287cb2f263
commit 97a221aa24
1 changed files with 2 additions and 1 deletions

View File

@ -202,6 +202,7 @@ def init_request_processors(app):
except (InvalidRequestError, IntegrityError):
db.session.rollback()
logout_user()
else:
clear_user_recent_ips(user_id=session["id"])
@app.before_request