I'm using devise 2.0.4 and cannot find where the "Reset password token is invalid" message is defined. I would have thought it was in the locales YAML file but it is not. I've also searched the gem source to no avail, which leads me to think that it must be constructed at run time. In the devise_error_messages! method I see that it must be defined as one of the full_messages for the resource, but being somewhat of a rails newbie I'm not sure where to look for that.
Put this in your config/locales/en.yml
en:
activerecord:
errors:
models:
user:
attributes:
reset_password_token:
blank: "is not valid"
invalid: "is not valid"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With