bnoguchi/mongoose-auth — Issue #78: Customising registration/login error messages
Author: thinkproductivity
Created: 2012-02-07 11:33:37+00:00
State: open

Is there a simple way to customise the error messages returned due to login/registration failures?

As far as I can see they are hard-coded and can't easily be overridden.

For example, the "User with login does not exist" message appears to be hard-coded within the 'authenticate' method that is added to the User schema.

Thanks