From 9733c4d39df82592fb6914a21b6976edc1f28cf4 Mon Sep 17 00:00:00 2001 From: Alberto Franco Date: Mon, 11 May 2020 17:25:57 -0400 Subject: [PATCH] Display too many password reset emails sent --- _locales/en/messages.json | 3 +++ app/Account/AccountReducer.js | 3 +++ app/panel/reducers/panel.js | 3 +++ 3 files changed, 9 insertions(+) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 6b30646c9..be8b52ccf 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -2409,5 +2409,8 @@ }, "no_thanks_continue_with_basic": { "message": "No thanks, continue with basic" + }, + "too_many_password_resets_text": { + "message": "Too many password reset requests. Try again in one hour." } } diff --git a/app/Account/AccountReducer.js b/app/Account/AccountReducer.js index 48076f6b0..b666fae16 100644 --- a/app/Account/AccountReducer.js +++ b/app/Account/AccountReducer.js @@ -104,6 +104,9 @@ export default (state = initialState, action) => { case '10110': errorText = t('banner_email_not_in_system_message'); break; + case 'too_many_password_resets': + errorText = t('too_many_password_resets_text'); + break; default: errorText = t('server_error_message'); } diff --git a/app/panel/reducers/panel.js b/app/panel/reducers/panel.js index 756db8c47..ac455b6dd 100644 --- a/app/panel/reducers/panel.js +++ b/app/panel/reducers/panel.js @@ -182,6 +182,9 @@ export default (state = initialState, action) => { case '10110': errorText = t('banner_email_not_in_system_message'); break; + case 'too_many_password_resets': + errorText = t('too_many_password_resets_text'); + break; default: errorText = t('server_error_message'); }