Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var passportShit = function(){
- var inspectMe = passport.authenticate('local-signup', {
- successRedirect : '/profile', // redirect to the secure profile section
- failureRedirect : '/signup', // redirect back to the signup page if there is an error
- failureFlash : true // allow flash messages
- });
- console.dir(inspectMe);
- return inspectMe;
- };
- app.post('/signup', passportShit);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement