feat: 代理内网白名单(proxy_allowed_hosts CIDR)+ fix: Cloudflare 验证码首次加载卡死/登录注册失败后验证码状态重置
This commit is contained in:
@@ -48,6 +48,10 @@ export default function Login() {
|
||||
} catch (e) {
|
||||
setError(e.message || '登录失败');
|
||||
setBusy(false);
|
||||
// 验证码 proof 为一次性消费:无论密码错还是 proof 已被使用,登录失败后均作废,
|
||||
// 重置「已验证」标记允许用户重新完成验证,否则按钮保持 disabled 死锁。
|
||||
setCapDone(false);
|
||||
setCapResult(null);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user