Fix register bug

This commit is contained in:
Moe Poi ~ 2021-11-17 15:54:55 +07:00
parent 02773d78a5
commit d8c8d88df9

View file

@ -88,12 +88,13 @@ router.post('/register', async (req, res) => {
res.json({ res.json({
'message': 'Bad Request' 'message': 'Bad Request'
}) })
} } else {
});
res.status(200); res.status(200);
res.json({ res.json({
'message': 'Register Verification Sent ~' 'message': 'Register Verification Sent ~'
}) })
}
});
} else { } else {
res.status(400); res.status(400);
res.json({ res.json({