Skip to content

Windows 客户端 V1.3.15

Choose a tag to compare

@crazying-dev crazying-dev released this 04 Oct 00:24
· 6 commits to windows since this release

Windows 客户端 V1.3.15

本次更新:三端人机验证(滑块拼图)

服务端为 11 个敏感接口加上了 @captcha_required,客户端需先完成滑块拼图验证再提交业务请求。本版本完成 Windows 客户端接入。

  • 新增滑块拼图验证弹窗:纯 QPainter 绘制背景 + 可拖动拼图块 + 滑块轨道,零第三方 SDK,不引入任何外部域名;
  • 接入 10 处敏感流程:
    • 登录、注册
    • 发送注册验证码、找回密码发码 / 重置密码
    • 修改密码(发码)
    • 更换绑定邮箱(当前邮箱 / 新邮箱发码)
    • 注销账号(发码 / 提交注销)
  • 两步式校验:/api/captcha/challenge → 拖动 → /api/captcha/verify → 把同一个一次性 token 随业务请求提交;token 用后即焚、绑定 IP、5 分钟过期、容差 ±6px;
  • 服务端以 CAPTCHA_ENABLED=0 关闭人机验证时,客户端自动跳过弹窗;
  • 说明:POST /api/user/password、POST /api/user/email(终止步骤)不加弹窗,只对它们的「发送验证码」步骤加。

校验

  • 单元测试:281 passed / 0 failed(新增 tests/test_captcha.py 10 例)
  • 安装包:forum_setup.exe(48,592,036 字节)
  • SHA-256:23d0a2fcd96662bbc9a0b3febef7ec23affe8cc2c031337f1e54011678acb9ee

站点:https://yjlt.top