From 2767af1e3d4319f20d59464d4be1f07490a2ef38 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Wed, 27 Sep 2023 21:22:03 +0300 Subject: [PATCH] Never use "5555" password --- app/features/tournament-bracket/tournament-bracket-utils.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/features/tournament-bracket/tournament-bracket-utils.ts b/app/features/tournament-bracket/tournament-bracket-utils.ts index 9fa3e7b75..22778f615 100644 --- a/app/features/tournament-bracket/tournament-bracket-utils.ts +++ b/app/features/tournament-bracket/tournament-bracket-utils.ts @@ -47,6 +47,11 @@ export function resolveRoomPass(matchId: TournamentMatch["id"]) { const next = shuffle(opts)[0]; pass += next; } + + // prevent 5555 since many use it as a default pass + // making it a bit more common guess + if (pass === "5555") return "5800"; + return pass; }