-
-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
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
How to render form on failure #2
Comments
I was wondering the same thing. The first example in http://passportjs.org/guide/authenticate.html mentions that Passport returns a In the next example, it looks like A |
bump |
Linking to passport #3, which has relevant discussion on this topic. |
A app.post('/login',
passport.authenticate('local', { successRedirect: '/home', failWithError: true }),
function(err, req, res, next) {
// handle error
return res.render('login-form');
}
); |
Hi Jared,
I need to render a form on login failure showing an error. What is the most elegant way to do that with password?
The text was updated successfully, but these errors were encountered: