aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/controllers
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-04-29 10:21:51 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-04-29 10:21:51 +0200
commit0cbfbc00b769859298f0991518561d6bed9e4dd2 (patch)
tree06096de5ff49fa17f3b8356ac5cfa985854bc86d /controllers
parentmade a simple templatefile (diff)
downloadDivid-0cbfbc00b769859298f0991518561d6bed9e4dd2.tar.gz
fixed small bug
Diffstat (limited to 'controllers')
-rw-r--r--controllers/users.js2
1 files changed, 1 insertions, 1 deletions
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');