- cleanup healthz logging in before_request
- Security and csrf added to eveai_ops. Otherwise the initialize_data.py script cannot initialize the Super User...
This commit is contained in:
@@ -119,15 +119,12 @@ def create_app(config_file=None):
|
||||
from flask_login import current_user
|
||||
import datetime
|
||||
|
||||
if request.path.startswith('/healthz'):
|
||||
return
|
||||
|
||||
app.logger.debug(f"Before request - URL: {request.url}")
|
||||
app.logger.debug(f"Before request - Session permanent: {session.permanent}")
|
||||
|
||||
# # Log session expiry tijd als deze bestaat
|
||||
# if current_user.is_authenticated:
|
||||
# # Controleer of sessie permanent is (nodig voor PERMANENT_SESSION_LIFETIME)
|
||||
# if not session.permanent:
|
||||
# session.permanent = True
|
||||
|
||||
@app.route('/debug/session')
|
||||
def debug_session():
|
||||
from flask import session
|
||||
|
||||
Reference in New Issue
Block a user