From 3c550f9dd2b36cf96514368573190f046785ea69 Mon Sep 17 00:00:00 2001 From: Okke Harsta Date: Wed, 28 Aug 2024 11:25:56 +0200 Subject: [PATCH] Differentiate in rate limited links #1560 --- client/src/locale/en.js | 4 +++- client/src/locale/nl.js | 4 +++- client/src/pages/SecondFactorAuthentication.jsx | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/client/src/locale/en.js b/client/src/locale/en.js index e0013ca40..46416d6bf 100644 --- a/client/src/locale/en.js +++ b/client/src/locale/en.js @@ -2259,7 +2259,9 @@ const en = { resetRequest: "Reset your verfication code", resetToken: "Use a reset code", rateLimited: "You were rate-limited", - rateLimitedInfo: "You have attempted the TOTP verification too many times, and therefore your TOTP has been disabled. Use a reset code to have your TOTP reset. Please contact sram-support@surf.nl for a reset code if you have not received one or request a new reset code." + rateLimitedInfo: "You have attempted the TOTP verification too many times, and therefore your TOTP has been disabled. Use a reset code to have your TOTP reset. Please contact sram-support@surf.nl for a reset code if you have not received one or request a new reset code.", + rateLimitedResetRequest: "Reset your verfication code", + rateLimitedResetToken: "Use a reset code", }, profile: { name: "Two-factor authentication", diff --git a/client/src/locale/nl.js b/client/src/locale/nl.js index 32b893c37..383822b92 100644 --- a/client/src/locale/nl.js +++ b/client/src/locale/nl.js @@ -2259,7 +2259,9 @@ const nl = { resetRequest: "Reset je verificatiecode", resetToken: "Gebruik een resetcode", rateLimited: "Je bent rate-limited", - rateLimitedInfo: "Je hebt de TOTP-verificatie te vaak geprobeerd en daarom is je TOTP uitgeschakeld. Gebruik een resetcode om je TOTP te resetten. Neem contact op sram-support@surf.nl voor een resetcode als je deze niet ontvangen hebt of vraag een nieuwe restcode aan." + rateLimitedInfo: "Je hebt de TOTP-verificatie te vaak geprobeerd en daarom is je TOTP uitgeschakeld. Gebruik een resetcode om je TOTP te resetten. Neem contact op sram-support@surf.nl voor een resetcode als je deze niet ontvangen hebt of vraag een nieuwe restcode aan.", + rateLimitedResetRequest: "Reset je verificatiecode", + rateLimitedResetToken: "Gebruik een resetcode", }, profile: { name: "Tweefactorauthenticatie", diff --git a/client/src/pages/SecondFactorAuthentication.jsx b/client/src/pages/SecondFactorAuthentication.jsx index be1a2fb18..afa994ab9 100644 --- a/client/src/pages/SecondFactorAuthentication.jsx +++ b/client/src/pages/SecondFactorAuthentication.jsx @@ -381,8 +381,8 @@ class SecondFactorAuthentication extends React.Component { }}/>
- {I18n.t("mfa.verify.resetRequest")} - {I18n.t("mfa.verify.resetToken")} + {I18n.t("mfa.verify.rateLimitedResetRequest")} + {I18n.t("mfa.verify.rateLimitedResetToken")}
)