06/04 Optimize app

This commit is contained in:
2026-06-04 13:25:57 -04:00
parent 0608f874fc
commit 0190da30d4
8 changed files with 158 additions and 65 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ def login():
error = f"Account locked. Try again in {mins}m {secs}s."
logger.warning(f"Login blocked for '{username}' — still locked ({seconds_remaining}s remaining).")
else:
user = authenticate(username, password)
user = authenticate(username, password, ip_address=ip)
if user:
session.clear() # prevent session fixation
session.permanent = True