You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the above code works without any issues and the user is being logged in the below code just hangs without providing any result. Can you let me know if anything is wrong with the approach.
Sorry for the confusion.
In order for it to execute I must execute the passport.authenticate function.
app.post('/login',function(req,res,next){
passport.authenticate('login',{
successRedirect: '/HTML/Private/1657708.jpg',
failureRedirect: '/HTML/Guest/signup.html'
})(req,res,next);
});
Hi,
While the above code works without any issues and the user is being logged in the below code just hangs without providing any result. Can you let me know if anything is wrong with the approach.
The text was updated successfully, but these errors were encountered: