index.js - Redirect Register errors to custom .ejs

This commit is contained in:
Matthew Patrick 2021-11-21 13:35:28 +07:00
parent db8e988c91
commit b00ab551ac

View file

@ -39,7 +39,7 @@ router.route("/register")
if (data == 200) {
res.render("pages/register-verification-sent");
} else {
res.redirect("/register");
res.render("pages/register-error")
}
});
});