We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it seems that the option userNotFound for passport.authenticate() does not work.
passport-ldapauth/lib/passport-ldapauth/strategy.js
Lines 283 to 284 in 0467cc3
I think above line should become like this;
if (typeof err === 'string' && err.match(/no such user/i)) { var message = options.userNotFound || options.invalidCredentials || 'Invalid username/password'; return this.fail({ message: message }, 401); } if (err.name === 'InvalidCredentialsError' || err.name === 'NoSuchObjectError') { var message; ...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
it seems that the option userNotFound for passport.authenticate() does not work.
passport-ldapauth/lib/passport-ldapauth/strategy.js
Lines 283 to 284 in 0467cc3
I think above line should become like this;
The text was updated successfully, but these errors were encountered: