🐛 Refactor: Consolidated user management and security functions in the backend. Added legal pages blueprint for compliance. Removed legacy rate limiter functions to streamline security integration. Updated logging for better clarity. 📚
This commit is contained in:
@@ -141,8 +141,7 @@ def upload_avatar():
|
||||
result = save_avatar_file(file, user_id=current_user.id)
|
||||
|
||||
if result['success']:
|
||||
# Altes Avatar löschen (optional)
|
||||
# TODO: Implementiere Avatar-Verwaltung in User-Model
|
||||
# Hinweis: Avatar-Verwaltung im User-Model könnte erweitert werden
|
||||
|
||||
uploads_logger.info(f"Avatar erfolgreich hochgeladen: {result['filename']} für User {current_user.id}")
|
||||
|
||||
|
Reference in New Issue
Block a user