移除登录失败限流;修复连接信息被 e2e 串味为 127.0.0.1

- bootstrap.php/login.php:整体移除「5 次失败锁 10 分钟」限流,登录失败仅即时提示原因
- 新增 tools/fix-config.php:一键双写修正连接地址(默认 exam.nxxy335.top),清空账号密码让用户重输真实卷王凭据
- NY_DATA 隔离落地:run-all.sh 给写配置的 e2e 指向临时目录;修 Windows Git Bash /c/... 路径规范化 bug;.ny-test-data 加 .gitignore
- 清理 dead throttle 引用(e2e 脚本 + docs)
- 修 login.php 真实 bug:ny_is_auth() 分支在加载 $cfg 前引用导致 Undefined variable 警告
- 全量测试 116 通过(PHP 44 + e2e 72)
This commit is contained in:
2026-09-11 17:25:22 +08:00
parent 25a2e8a42c
commit 804b04de60
11 changed files with 151 additions and 113 deletions
+3
View File
@@ -1,6 +1,9 @@
# 运行时数据:含账号密码、API 令牌、学生名单,禁止入库
data/
# e2e 隔离用的临时数据目录(run-all.sh 自动创建,不入库)
.ny-test-data/
# 依赖与系统文件
node_modules/
vendor/