From 0cbfbc00b769859298f0991518561d6bed9e4dd2 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Mon, 29 Apr 2013 10:21:51 +0200 Subject: fixed small bug --- controllers/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'controllers/users.js') diff --git a/controllers/users.js b/controllers/users.js index 6571b85..4b952f8 100644 --- a/controllers/users.js +++ b/controllers/users.js @@ -47,7 +47,7 @@ exports.create = function(req, res) { var user = new User(req.body); user.provider = 'local'; user.save(function(err) { - if (err) return res.render('/signup', { errors: err.errors, user: user }); + if (err) return res.render('signup', { errors: err.errors, user: user }); req.logIn(user, function(err) { if (err) return next(err); return res.redirect('/dashboard'); -- cgit v1.2.3