I authenticate user by Devise with keys config.authentication_keys = [ :email , :company_id ]
In config/locales/devise.en.yml
, the fail message is configured:
invalid: "Invalid %{authentication_keys} or password."
So, wrong authentication with message (what I don't like):
Invalid email, company_id or password.
How can I change the message like this
Invalid email, company or password.
without hardcoded invalid: "Invalid email, company or password."
in devise.en.yml
:
Something like the following should work:
Edit: since devise itself doesn't have a place to store them, I can't find a way to do what you require. Editing strings in the yaml file itself is not possible.