🐛 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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user