Skip to content

Commit 3b7e5d7

Browse files
committed
feat(middleware): 调整匿名访问验证码触发频率
- 将匿名访问验证码触发频率从每3次访问调整为每10次访问 - 优化了验证码验证逻辑的触发条件
1 parent c318f79 commit 3b7e5d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/b3log/symphony/processor/middleware/AnonymousViewCheckMidware.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ public void handle(final RequestContext context) {
191191
}
192192
}
193193

194-
// 之后每访问 3 次需要一次验证码
195-
if (!needCaptcha && count % 3 == 0) {
194+
// 之后每访问 10 次需要一次验证码
195+
if (!needCaptcha && count % 10 == 0) {
196196
needCaptcha = true;
197197
}
198198

-121 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)