Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 66d612ce authored by 65160394's avatar 65160394
Browse files

Project Round 2

parent 3bf268c9
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ exports.postRegister = (req, res) => { ...@@ -52,7 +52,7 @@ exports.postRegister = (req, res) => {
User.create(name, email, password, (err, userId) => { User.create(name, email, password, (err, userId) => {
if (err) return res.render('register', { message: 'Error creating user' }); if (err) return res.render('register', { message: 'Error creating user' });
req.session.userId = userId; req.session.userId = userId;
res.redirect('/'); res.redirect('/login');
}); });
}); });
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment