mcordell / grape_token_auth

Token auth for grape apps
MIT License
52 stars 19 forks source link

Validation error message reads wrong for password and password confirmation mismatch #34

Closed npras closed 8 years ago

npras commented 8 years ago

When Password and Password Confirmation is not the same, the validation error message reads like this:

"Validation failed: Password confirmation password confirmation does not match".

It reads wrong.

So, to fix this, the error is added on the ':base' key instead of the ':password_confirmation' key of the error object. Now it would read:

"Validation failed: password and password confirmation do not match"

npras commented 8 years ago

Tests are not affected by this change.

mcordell commented 8 years ago

Looks good, thank you!

npras commented 8 years ago

Thanks for merging!