feat(diary): 班级码验证添加5次错误锁定 — Redis计数 + 30分钟冷却

This commit is contained in:
iven
2026-06-01 22:34:02 +08:00
parent 0c6a33d96b
commit 6cb288b4f2
5 changed files with 81 additions and 3 deletions

View File

@@ -93,6 +93,7 @@ where
req.class_code,
None, // 昵称暂不通过此接口传递
&state.db,
state.redis.as_ref(),
&state.event_bus,
)
.await?;