Rebase 2.4.0-dev

cache-user-ips-for-tracker
Kevin Chung 2020-04-30 03:21:13 -04:00
parent 0bd6c0d958
commit b3b654bf03
2 changed files with 2 additions and 2 deletions

View File

@ -42,6 +42,7 @@ from CTFd.utils.security.csrf import generate_nonce
from CTFd.utils.user import (
authed,
get_current_user_attrs,
get_current_user_ips,
get_current_team_attrs,
get_ip,
is_admin,
@ -201,7 +202,6 @@ def init_request_processors(app):
logout_user()
clear_user_ips(user_id=session["id"])
db.session.close()
@app.before_request
def banned():

View File

@ -7,7 +7,7 @@ from flask import request, session
from CTFd.cache import cache
from CTFd.constants.users import UserAttrs
from CTFd.constants.teams import TeamAttrs
from CTFd.models import Fails, Users, db, Teams
from CTFd.models import Fails, Users, db, Teams, Tracking
from CTFd.utils import get_config