From 1b428b881ab5598d13a88f9ab5c8e26d811ba9c3 Mon Sep 17 00:00:00 2001 From: Josef Strzibny Date: Tue, 5 Nov 2024 18:52:27 +0100 Subject: [PATCH] Remove unnecessary notice --- app/controllers/devise_otp/devise/otp_tokens_controller.rb | 1 - config/locales/en.yml | 2 -- 2 files changed, 3 deletions(-) diff --git a/app/controllers/devise_otp/devise/otp_tokens_controller.rb b/app/controllers/devise_otp/devise/otp_tokens_controller.rb index 67dea1a..414ffaf 100644 --- a/app/controllers/devise_otp/devise/otp_tokens_controller.rb +++ b/app/controllers/devise_otp/devise/otp_tokens_controller.rb @@ -109,7 +109,6 @@ def ensure_credentials_refresh ensure_resource! if needs_credentials_refresh?(resource) - otp_set_flash_message :notice, :need_to_refresh_credentials redirect_to refresh_otp_credential_path_for(resource) end end diff --git a/config/locales/en.yml b/config/locales/en.yml index 837b737..d1d5727 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -14,7 +14,6 @@ en: otp_session_invalid: Session invalid. Please start again. token_invalid: 'The token you provided was invalid.' token_blank: 'You need to type in the token you generated with your device.' - need_to_refresh_credentials: 'We need to check your credentials before you can change these settings.' valid_refresh: 'Thank you, your credentials were accepted.' invalid_refresh: 'Sorry, you provided the wrong credentials.' credentials_refresh: @@ -41,7 +40,6 @@ en: successfully_set_persistence: 'Your device is now trusted.' successfully_cleared_persistence: 'Your device has been removed from the list of trusted devices.' successfully_reset_persistence: 'Your list of trusted devices has been cleared.' - need_to_refresh_credentials: 'We need to check your credentials before you can change these settings.' recovery: title: 'Your Emergency Recovery Codes' explain: 'Take note or print these recovery codes. The will allow you to log back in in case your token device is lost, stolen, or unavailable.'