Skip to content

Commit ed4fcb9

Browse files
committed
```
fix(security): 调整验证码触发频率策略 - 将验证码触发频率从每3次访问一次调整为每10次访问一次 - 保持2小时内首次访问即触发验证码的策略不变 ```
1 parent 3b7e5d7 commit ed4fcb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public void handle(final RequestContext context) {
168168
ipFirstVisitTimeCache.put(ip, firstVisitTime);
169169
}
170170

171-
// 计数逻辑(包含两种策略:2 小时内首次访问一次验证码,其后每 3 次一次)
171+
// 计数逻辑(包含两种策略:2 小时内首次访问一次验证码,其后每 10 次一次)
172172
Integer count = ipVisitCountCache.getIfPresent(ip);
173173
if (count == null) count = 0;
174174
count++;

0 commit comments

Comments
 (0)