fixing registration

This commit is contained in:
Expand-sys 2021-06-10 10:10:43 +10:00
parent 6a835685f8
commit 7a1ebfc118

View file

@ -321,7 +321,7 @@ app.post("/register", async function (req, res) {
if (password.length < 6) { if (password.length < 6) {
errors.push({ msg: "Password must be at least 6 characters" }); errors.push({ msg: "Password must be at least 6 characters" });
} }
if (errors[0]) { if (errors) {
res.render("register", { res.render("register", {
errors: errors, errors: errors,
marketplace: process.env.MARKETPLACE, marketplace: process.env.MARKETPLACE,