mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-05-19 21:52:35 +02:00
Who cares? Is our desicion! However, to be on the safe side, warn in the console...
This commit is contained in:
parent
76c382f229
commit
3924668000
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue