修改 使用hutool验证码替换原验证码

This commit is contained in:
yueye
2021-12-31 11:29:41 +08:00
parent 63aedd6fe9
commit 6726e7716e
10 changed files with 269 additions and 256 deletions

View File

@@ -49,8 +49,16 @@ spring:
security:
# 验证码
captcha:
# 是否开启验证码
enabled: true
type: math
# 验证码类型 math 数组计算 char 字符验证
type: MATH
# line 线段干扰 circle 圆圈干扰 shear 扭曲干扰
category: CIRCLE
# 数字验证码位数
numberLength: 1
# 字符验证码长度
charLength: 4
# 防止XSS攻击
xss:
enabled: true