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

fix(email-validation): Update in-use email validation message during registration to allow full_message use #255

Merged
merged 1 commit into from
Jun 16, 2015

Conversation

booleanbetrayal
Copy link
Collaborator

Currently, if you have an email validation error during registration, you get a full_message response of "Email This Email address is already in use" and so you cannot simply regurgitate that as a client-facing error. This is because full_message construction takes the field name and prepends it to the default devise messaging.

While this commit results in more abbreviated messaging, it allows full_messages to be used across the board without any additional programmatic work. If this message is not ideal, I believe it can still be modified through devise translation configuration: http://stackoverflow.com/a/12435725/824966

…ge during registration to allow full_message use

Currently, if you have an email validation error during registration, you get a `full_message` response of "Email This Email address is already in use" and so you cannot simply regurgitate that as a client-facing error. This is because `full_message` construction takes the field name and prepends it to the default devise messaging. 

While this commit results in more abbreviated messaging, it allows `full_messages` to be used across the board without any additional programmatic work. If this message is not ideal, I believe it can still be modified through devise translation configuration: http://stackoverflow.com/a/12435725/824966
booleanbetrayal added a commit that referenced this pull request Jun 16, 2015
fix(email-validation): Update in-use email validation message during registration to allow full_message use
@booleanbetrayal booleanbetrayal merged commit 784df77 into lynndylanhurley:master Jun 16, 2015
@booleanbetrayal booleanbetrayal deleted the patch-1 branch June 16, 2015 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant