fix all csfr token issues
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -2,7 +2,6 @@ from flask import render_template, Blueprint, redirect, url_for, request, flash,
|
||||
from flask_login import current_user, login_required
|
||||
from models import User, db, Room, RoomFile, RoomMemberPermission, SiteSettings, Event
|
||||
from routes.auth import require_password_change
|
||||
from utils.event_logger import log_event
|
||||
import os
|
||||
from werkzeug.utils import secure_filename
|
||||
from sqlalchemy import func, case, literal_column, text
|
||||
@@ -361,10 +360,6 @@ def init_routes(main_bp):
|
||||
}
|
||||
logger.debug(f"Preparing to create profile update event with details: {event_details}")
|
||||
|
||||
# Create the event
|
||||
event = log_event('user_update', event_details, current_user.id)
|
||||
logger.debug("Event object created and added to session")
|
||||
|
||||
# Commit all changes
|
||||
db.session.commit()
|
||||
logger.debug("Profile changes and event committed to database successfully")
|
||||
|
||||
Reference in New Issue
Block a user