From b00ab551ac670a5f2bb1508f65f61078e39e1b8f Mon Sep 17 00:00:00 2001 From: Matthew Patrick Date: Sun, 21 Nov 2021 13:35:28 +0700 Subject: [PATCH] index.js - Redirect Register errors to custom .ejs --- routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index 030d04e..3934d8d 100644 --- a/routes/index.js +++ b/routes/index.js @@ -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") } }); });