安全修复(Critical): clear_stats() 添加 ADMIN_TOKEN 身份验证

- 防止未授权清空统计数据
- 需要设置环境变量 ADMIN_TOKEN 才能执行清空操作
This commit is contained in:
2026-03-09 15:17:38 +08:00
parent f9cc8bb82a
commit 65ef23de5d
4 changed files with 879 additions and 11 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
"operator.approvals",
"operator.pairing"
],
"updatedAtMs": 1773026362728
"updatedAtMs": 1773040616977
}
}
}