Commit Graph
2 Commits
Author SHA1 Message Date
seewe dbf071c2ea feat(auth): 图片验证码类型支持参数管理动态配置 / Make image captcha type configurable via sys_config
- 生成验证码时优先读取参数 sys.account.captchaType(math/char),未配置时回退 yml security.captcha.type
- 参数经 RemoteConfigService 读取,参数管理保存后即时生效
2026-08-30 18:07:42 +08:00
seewe 42052f7bf5 feat(auth): 小程序登录支持配置化与手机号一键登录自动注册 / Add configurable xcx login with phone auto-registration
- 小程序 appid/密钥支持参数管理 sys.account.xcxApps(JSON 数组,多小程序)优先,yml security.xcx.apps 兜底
- 登录新增 phoneCode 字段,调用微信 getuserphonenumber 解析真实手机号,stable_token 按小程序缓存至 redis
- 首次登录自动注册:以授权手机号为账号(已有同手机号账号则直接绑定),写入 sys_social 绑定 openid
- 自动注册默认昵称/初始密码(sys.user.initPassword)/头像/性别,用户类型 app_user
2026-08-30 18:07:34 +08:00