fix(auth): 邮箱验证码按账号累计错误次数封顶并通知
This commit is contained in:
17 files changed
+664
-37
No files matched your search
@@ -22,6 +22,7 @@
|
||||
"generic": "Something went wrong.",
|
||||
"otp_resend_cooldown": "Verification code requested too frequently, please try again later.",
|
||||
"otp_locked": "Too many incorrect attempts, please request a new verification code.",
|
||||
"otp_account_locked": "Too many wrong codes in 24 hours — email codes for this account are paused. Try again later or use a passkey.",
|
||||
"passkey_challenge_invalid": "Passkey challenge is invalid or expired, please try again.",
|
||||
"invalid_attestation": "Could not verify this Passkey, please try again.",
|
||||
"passkey_already_bound": "This Passkey is already bound to another account.",
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
"generic": "出了点问题,请稍后重试。",
|
||||
"otp_resend_cooldown": "验证码发送频繁,请稍后再试。",
|
||||
"otp_locked": "验证码错误次数过多,请重新获取验证码。",
|
||||
"otp_account_locked": "24 小时内验证码错误次数已达上限,此账号的邮箱验证码暂时停用,请稍后再试或改用 Passkey。",
|
||||
"passkey_challenge_invalid": "验证挑战无效或已过期,请重试。",
|
||||
"invalid_attestation": "无法验证此 Passkey,请重试。",
|
||||
"passkey_already_bound": "此 Passkey 已被其他账户绑定。",
|
||||
|
||||
@@ -677,6 +677,8 @@ export function humanizeError(e: unknown): string {
|
||||
return t("otp_resend_cooldown");
|
||||
case "otp_locked":
|
||||
return t("otp_locked");
|
||||
case "otp_account_locked":
|
||||
return t("otp_account_locked");
|
||||
case "passkey_challenge_invalid":
|
||||
return t("passkey_challenge_invalid");
|
||||
case "invalid_attestation":
|
||||
|
||||
Reference in new issue
Block a user