Merge branch 'master' into admin-theme-successful-email-fix

mark-2.4.1
ilanarbi 2020-05-06 05:22:35 +03:00 committed by GitHub
commit 77afae2a4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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