Skip to content

Commit

Permalink
Remove unnecessary notice (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
strzibny authored Nov 5, 2024
1 parent 1dd2876 commit b786ec8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/controllers/devise_otp/devise/otp_tokens_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.'
Expand Down

0 comments on commit b786ec8

Please sign in to comment.