Move register route from auth to manage

main
sudoer777 2021-11-25 15:41:10 -07:00
parent b7f032754b
commit 4a108f606b
1 changed files with 1 additions and 4 deletions

View File

@ -34,9 +34,6 @@ router.post('/login',
console.log(req.user);
});
router.post('/register', adminLoggedIn, (req, res, next) => {
accounts.createUser(req.body.email, req.body.password, !!req.body.admin)
.then(res.redirect('/manage'));
});
module.exports = router;