Dereference and improve wording of TOTP errors.

This commit is contained in:
Karina Kwiatek 2023-01-08 20:19:54 +01:00
parent 125720c6e4
commit 11476d3ccc
2 changed files with 2 additions and 4 deletions

View file

@ -189,7 +189,7 @@ en:
two_factor_authentication:
otp_authentication:
update:
error: :errors.invalid_otp
error: "The code entered was invalid. Please check the system time on your device."
destroy:
success: "Two factor authentication has been disabled for your account."
user:
@ -201,7 +201,7 @@ en:
info:
one: "You have only one recovery code remaining. Please regenerate your recovery codes from the security settings to avoid being locked out!"
other: "You have %{count} recovery codes remaining."
error: :errors.invalid_otp
error: "The code entered was invalid."
registrations:
destroy:
export_pending: "You may not delete your account while account data is currently being exported."

View file

@ -28,8 +28,6 @@ en:
conflict: "This already exists"
invalid_otp: "The code you entered was invalid."
parameter_error: "%{parameter} is required."
invalid_parameter: "Invalid parameter"