removed debug print

This commit is contained in:
Youen 2022-08-14 18:48:09 +02:00
parent fe2351eda0
commit 3f723235ec

View File

@ -9,7 +9,7 @@ bp = Blueprint('admin', __name__, url_prefix='/admin')
@bp.before_app_request @bp.before_app_request
def authenticate(): def authenticate():
print(request.path) # Some views don't need authentication
if request.path == '/admin/login' or request.path.startswith('/doc/') or request.path == '/api/doc/build': if request.path == '/admin/login' or request.path.startswith('/doc/') or request.path == '/api/doc/build':
return return
@ -33,4 +33,4 @@ def login():
else: else:
raise Exception("Incorrect password") raise Exception("Incorrect password")
else: else:
return render_template("admin/login.html") return render_template("admin/login.html")