jaredhanson / passport-local

Username and password authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-local/?utm_source=github&utm_medium=referral&utm_campaign=passport-local&utm_content=about
MIT License
2.74k stars 498 forks source link

AuthenticationError is overridding badRequestMessage #146

Open jonniedarko opened 8 years ago

jonniedarko commented 8 years ago

I have a custom badRequest message for my 'signup' strategy that I am passing using badRequestMessage option but it still returns "Bad Request" when I have no password or username instead of the option I supplied.