You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error message returned when email is already in use becomes weird in full_messages. This is as a result of the following line in models/devise_token_auth/concerns/user.rb errors.add(:email, :already_in_use, default: "This email address is already in use")
Since rails concatenates the field to associated errors for full_messages, this becomes Email This email address is already in use
I suggest the offending line be changed to errors.add(:email, :already_in_use, default: "address is already in use")
Or better still, an extra line can be added like below
errors.add(:email, :already_in_use, default: "address is already in use")
errors.add(:base, "This email address is already in use")
I would also like to know if this behaviour was requested earlier.
The text was updated successfully, but these errors were encountered:
The error message returned when email is already in use becomes weird in full_messages. This is as a result of the following line in
models/devise_token_auth/concerns/user.rb
errors.add(:email, :already_in_use, default: "This email address is already in use")
Since rails concatenates the field to associated errors for full_messages, this becomes
Email This email address is already in use
I suggest the offending line be changed to
errors.add(:email, :already_in_use, default: "address is already in use")
Or better still, an extra line can be added like below
I would also like to know if this behaviour was requested earlier.
The text was updated successfully, but these errors were encountered: