mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-07-21 09:03:23 +02:00
feat: implement login throttling with exponential backoff and enforce minimum admin password length
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user