🐛 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:
2025-06-12 20:44:11 +02:00
parent 69fd3187cf
commit 6b8fca218b
19 changed files with 698 additions and 3639 deletions

View File

@@ -455,11 +455,9 @@
{% block scripts %}
<script>
document.addEventListener('DOMContentLoaded', function() {
// TEMPORÄRES DEBUGGING: LocalStorage leeren
console.log("Clearing login attempts from localStorage...");
// LocalStorage leeren
localStorage.removeItem('loginAttempts');
localStorage.removeItem('lastAttemptTime');
console.log("Login rate limiting reset");
initializeLoginForm();
checkRateLimit();
@@ -517,8 +515,6 @@
const now = Date.now();
const timeSinceLastAttempt = now - lastAttemptTime;
// TEMPORÄR DEAKTIVIERT FÜR DEBUGGING
console.log("Rate Limiting temporär deaktiviert");
return; // Frühes Return verhindert Rate Limiting
if (loginAttempts >= MAX_ATTEMPTS && timeSinceLastAttempt < LOCKOUT_DURATION) {