mirror of https://github.com/JohnHammond/CTFd.git
Fix an issue where session id no longer exists
parent
287cb2f263
commit
97a221aa24
|
@ -202,6 +202,7 @@ def init_request_processors(app):
|
||||||
except (InvalidRequestError, IntegrityError):
|
except (InvalidRequestError, IntegrityError):
|
||||||
db.session.rollback()
|
db.session.rollback()
|
||||||
logout_user()
|
logout_user()
|
||||||
|
else:
|
||||||
clear_user_recent_ips(user_id=session["id"])
|
clear_user_recent_ips(user_id=session["id"])
|
||||||
|
|
||||||
@app.before_request
|
@app.before_request
|
||||||
|
|
Loading…
Reference in New Issue