From 3924668000f4766ad1d7721fa2cc609298d4b6a9 Mon Sep 17 00:00:00 2001 From: Justman100 <149507651+Justman100@users.noreply.github.com> Date: Tue, 6 May 2025 21:06:54 +0200 Subject: [PATCH] Who cares? Is our desicion! However, to be on the safe side, warn in the console... --- server/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.js b/server/server.js index ec5ad49f6..23795e0af 100644 --- a/server/server.js +++ b/server/server.js @@ -665,7 +665,7 @@ let needSetup = false; socket.on("setup", async (username, password, callback) => { try { if (passwordStrength(password).value === "Too weak") { - throw new Error("Password is too weak. It should contain alphabetic and numeric characters. It must be at least 6 characters in length."); + log.warn("init", "Password is too weak. It should contain alphabetic and numeric characters. It must be at least 6 characters in length."); } if ((await R.knex("user").count("id as count").first()).count !== 0) {