Who cares? Is our desicion! However, to be on the safe side, warn in the console...

This commit is contained in:
Justman100 2025-05-06 21:06:54 +02:00 committed by GitHub
parent 76c382f229
commit 3924668000
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -665,7 +665,7 @@ let needSetup = false;
socket.on("setup", async (username, password, callback) => { socket.on("setup", async (username, password, callback) => {
try { try {
if (passwordStrength(password).value === "Too weak") { 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) { if ((await R.knex("user").count("id as count").first()).count !== 0) {