From 7a1ebfc11886f8ace647804ff5ebc5ac82e295a6 Mon Sep 17 00:00:00 2001 From: Expand-sys Date: Thu, 10 Jun 2021 10:10:43 +1000 Subject: [PATCH] fixing registration --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 83117ac..59b8bfb 100644 --- a/index.js +++ b/index.js @@ -321,7 +321,7 @@ app.post("/register", async function (req, res) { if (password.length < 6) { errors.push({ msg: "Password must be at least 6 characters" }); } - if (errors[0]) { + if (errors) { res.render("register", { errors: errors, marketplace: process.env.MARKETPLACE,