Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary notice #99

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove unnecessary notice
strzibny committed Nov 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 1b428b881ab5598d13a88f9ab5c8e26d811ba9c3
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
@@ -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
2 changes: 0 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -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.'