feat: harden account security flows

This commit is contained in:
2026-08-04 14:29:51 +08:00
parent 630252e2ff
commit c71b1351d6
14 changed files with 892 additions and 56 deletions
+2
View File
@@ -33,6 +33,8 @@ RESEND_FROM_EMAIL=no-reply@waternetwork.cn
EMAIL_CODE_MINUTES=10
EMAIL_CODE_RESEND_SECONDS=60
EMAIL_CODE_MAX_ATTEMPTS=5
# 邮箱验证码通过后,用于改密和找回密码的短时授权(分钟)。
FRESH_AUTH_MINUTES=5
# 受信设备的有效期(天)。
TRUSTED_DEVICE_DAYS=30