Skip to content

Commit

Permalink
Differentiate in rate limited links #1560
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Aug 28, 2024
1 parent 785f5fd commit 3c550f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion client/src/locale/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] 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 [email protected] 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",
Expand Down
4 changes: 3 additions & 1 deletion client/src/locale/nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] 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 [email protected] 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",
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/SecondFactorAuthentication.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ class SecondFactorAuthentication extends React.Component {
}}/>
</section>
<div className="explain">
<a href="/reset-token" onClick={this.openResetRequest}>{I18n.t("mfa.verify.resetRequest")}</a>
<a href="/enter-reset" onClick={this.enterResetToken}>{I18n.t("mfa.verify.resetToken")}</a>
<a href="/reset-token" onClick={this.openResetRequest}>{I18n.t("mfa.verify.rateLimitedResetRequest")}</a>
<a href="/enter-reset" onClick={this.enterResetToken}>{I18n.t("mfa.verify.rateLimitedResetToken")}</a>
</div>
</div>
)
Expand Down

0 comments on commit 3c550f9

Please sign in to comment.