mirror of https://github.com/JohnHammond/CTFd.git
Merge pull request #1383 from CTFd/fix-invalid-session-situation
* Fix an issue where session id no longer exists but the server thinks the user is still authedmark-2.4.1
commit
6a785f1095
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue