feat: 代理内网白名单(proxy_allowed_hosts CIDR)+ fix: Cloudflare 验证码首次加载卡死/登录注册失败后验证码状态重置

This commit is contained in:
2026-08-09 03:48:19 +08:00
parent 0def382511
commit 6ce6438854
6 changed files with 116 additions and 18 deletions
+4
View File
@@ -48,6 +48,10 @@ export default function Login() {
} catch (e) {
setError(e.message || '登录失败');
setBusy(false);
// 验证码 proof 为一次性消费:无论密码错还是 proof 已被使用,登录失败后均作废,
// 重置「已验证」标记允许用户重新完成验证,否则按钮保持 disabled 死锁。
setCapDone(false);
setCapResult(null);
}
};