diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-29 10:21:51 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-29 10:21:51 +0200 |
commit | 0cbfbc00b769859298f0991518561d6bed9e4dd2 (patch) | |
tree | 06096de5ff49fa17f3b8356ac5cfa985854bc86d /controllers/users.js | |
parent | made a simple templatefile (diff) | |
download | Divid-0cbfbc00b769859298f0991518561d6bed9e4dd2.tar.gz |
fixed small bug
Diffstat (limited to 'controllers/users.js')
-rw-r--r-- | controllers/users.js | 2 |
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'); |