跳到主要内容

webConfig

前台基础配置

{
"setting": {
"loginModule": [
{
"redirectUri": "http://aote-office.8866.org",
"appId": "wxdc31e9d7e17cdd1d",
"moduleKey": "bind-wechat"
}
],
"strongPwd": true,
"loginCaptcha":true,
"systemName": "奥枫智慧燃气",
"systemLogo": "aofenglogo.svg"
}
}

-- strongPwd 强密码校验 仅在修改密码 ,新增用户时生效 且 只生效于 af-system 命名空间下配置 -- loginCaptcha 尽在登录注册时生效 且 只生效于 af-system 命名空间下配置 -- loginCaptcha 还需要配置 gateway 中 security.captcha.enabled 为 true -- loginModule 登录模式,比如登录增加 手机登录/微信登录 需要配置 loginModule,如不需要可以在配置中删除

# 安全配置
security:
# 验证码
captcha:
enabled: true
type: math -- 验证码类型 math/char 数字 或者 字符
numberLength: 2 -- 数字时数字长度 默认为 2
charLength: 4 -- 字符时字符长度 默认为 4