From 6b495767c07a530552743eeb8d0ff817388b95ec Mon Sep 17 00:00:00 2001 From: psychobunny Date: Mon, 13 May 2013 18:33:53 +0000 Subject: [PATCH] removed server side templates for register --- src/routes/authentication.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/routes/authentication.js b/src/routes/authentication.js index cfd877b0a9..e6d8a93cfe 100644 --- a/src/routes/authentication.js +++ b/src/routes/authentication.js @@ -131,9 +131,6 @@ res.send(templates['header'] + templates['reset'] + templates['footer']); }); - app.get('/register', function(req, res) { - res.send(templates['header'] + templates['register'] + templates['footer']); - }); app.post('/login', passport.authenticate('local', { successRedirect: '/', @@ -141,6 +138,7 @@ })); app.post('/register', function(req, res) { + console.log('wtf'); user_module.create(req.body.username, req.body.password, req.body.email, function(err, uid) { if (err === null) { req.login({