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

@@ -116,6 +116,7 @@ impl FromRef<AppState> for erp_diary::DiaryState {
db: state.db.clone(),
event_bus: state.event_bus.clone(),
crypto: state.pii_crypto.clone(),
redis: Some(state.redis.clone()),
}
}
}