!10 升级验证码请求限制

Merge pull request !10 from September/master
This commit is contained in:
小诺 2021-02-20 12:01:55 +08:00 committed by Gitee
commit 846d11869a
2 changed files with 9 additions and 3 deletions

View File

@ -88,9 +88,9 @@
<!--验证码--> <!--验证码-->
<dependency> <dependency>
<groupId>com.github.anji-plus</groupId> <groupId>com.anji-plus</groupId>
<artifactId>captcha-spring-boot-starter</artifactId> <artifactId>spring-boot-starter-captcha</artifactId>
<version>1.2.6</version> <version>1.2.8</version>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -66,3 +66,9 @@ aj:
cache-type: local #分布式部署需要 自己实现CaptchaCacheService 使用redis需要配置redis相关配置 cache-type: local #分布式部署需要 自己实现CaptchaCacheService 使用redis需要配置redis相关配置
type: clickword #验证码类型 为点选 blockPuzzle 为滑块验证码 type: clickword #验证码类型 为点选 blockPuzzle 为滑块验证码
font-type: 宋体 font-type: 宋体
req-frequency-limit-enable: true #接口请求次数一分钟限制是否开启 true|false
req-get-lock-limit: 2 # 验证失败2次get接口锁定
req-get-lock-seconds: 10 # 验证失败后,锁定时间间隔,s
req-get-minute-limit: 30 # get接口一分钟内请求数限制
req-check-minute-limit: 60 # check接口一分钟内请求数限制
req-verify-minute-limit: 60 # verify接口一分钟内请求数限制