feat: 登录页接入图形验证码,登录接口强制校验

登录页展示 captcha 图形码(点击刷新),登录请求携带 captcha_token/captcha_answer;gateway 的 /login 启用验证码校验,经 pymsg 调 captcha verify 路由(fail-closed),补齐防爆破短板。
This commit is contained in:
qing committed 2026-07-28 10:15:01 +08:00
1 parent 323dd3061b
commit 6fcb70d235
3 files changed
+88 -13

No files matched your search

+4
View File
@@ -17,6 +17,10 @@
<label>密码:</label>
<input type="password" id="loginPassword" placeholder="请输入密码">
<span id="pwdTip"></span>
<label>验证码:</label>
<input type="text" id="captchaAnswer" placeholder="请输入验证码" maxlength="5" autocomplete="off" style="width:110px">
<img id="captchaImg" alt="加载中…" title="点击刷新验证码" style="width:120px;height:38px;vertical-align:middle;cursor:pointer;margin-left:8px;border:1px solid #ddd;border-radius:4px;box-sizing:border-box">
<span id="captchaTip"></span>
</div>
<div class="form-actions">
<button type="button" id="registerBtn">注册</button>