06/04 Optimize app
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user