mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-10 00:34:21 +01:00
Rebase 2.4.0-dev
This commit is contained in:
@@ -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():
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user