View difference between Paste ID: M2Ntng2u and G1JFLkPr
SHOW: | | - or go back to the newest paste.
1-
	var passportShit = app.post('/signup', passport.authenticate('local-signup', {
1+
	var passportShit = function(){
2-
		successRedirect : '/profile', // redirect to the secure profile section
2+
			var inspectMe = passport.authenticate('local-signup', {
3-
		failureRedirect : '/signup', // redirect back to the signup page if there is an error
3+
				successRedirect : '/profile', // redirect to the secure profile section
4-
		failureFlash : true // allow flash messages
4+
				failureRedirect : '/signup', // redirect back to the signup page if there is an error
5-
	}));
5+
				failureFlash : true // allow flash messages
6
			});
7
			console.dir(inspectMe);
8
			return inspectMe;
9
	};
10
	app.post('/signup', passportShit);