feat: implement login throttling with exponential backoff and enforce minimum admin password length

This commit is contained in:
Lloyd
2026-06-10 16:54:21 +01:00
parent 9cff088853
commit 4a8876a95e
5 changed files with 290 additions and 13 deletions
+2 -2
View File
@@ -1159,8 +1159,8 @@ class APIEndpoints:
return {"success": False, "error": "Radio preset selection is required"}
admin_password = data.get("admin_password", "").strip()
if not admin_password or len(admin_password) < 6:
return {"success": False, "error": "Admin password must be at least 6 characters"}
if not admin_password or len(admin_password) < 8:
return {"success": False, "error": "Admin password must be at least 8 characters"}
import json