opt:五月增补-去掉登录验证码,token有效期24小时、主登录界面已经登录后,看板页面不要再次登录

This commit is contained in:
zhaoyf
2026-06-01 16:24:28 +08:00
parent 4902c0e9a1
commit c76b06cdcb
18 changed files with 63 additions and 315 deletions

View File

@@ -51,24 +51,8 @@ spring:
login:
# 登录缓存
cache-enable: true
# 是否限制单用户登录
# 是否限制单用户登录
single-login: false
# 验证码
login-code:
# 验证码类型配置 查看 LoginProperties 类
code-type: arithmetic
# 登录图形验证码有效时间/分钟
expiration: 2
# 验证码高度
width: 111
# 验证码宽度
heigth: 36
# 内容长度
length: 2
# 字体名称,为空则使用默认字体
font-name:
# 字体大小
font-size: 25
#是否允许生成代码生产环境设置为false
generator:
@@ -105,8 +89,8 @@ logging:
sa-token:
# token 名称 (同时也是cookie名称)
token-name: Authorization
# token 有效期单位s 默认30天, -1代表永不过期
timeout: 2592000
# token 有效期单位s 默认24小时, -1代表永不过期
timeout: 86400
# token 临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
activity-timeout: -1
# 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)