From c5504878b830ade3f70c94a06a328d605824e548 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 19 Apr 2026 22:44:18 +0200 Subject: eslint: yoda --- src/api/util/utility/passwordStrength.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api') diff --git a/src/api/util/utility/passwordStrength.ts b/src/api/util/utility/passwordStrength.ts index 7a9d4c5f..041997c9 100644 --- a/src/api/util/utility/passwordStrength.ts +++ b/src/api/util/utility/passwordStrength.ts @@ -44,12 +44,12 @@ export function checkPassword(password: string): number { } // checks for amount of Numbers - if (password.match(reNUMBER)?.length ?? 0 >= minNumbers - 1) { + if ((password.match(reNUMBER)?.length ?? 0) >= minNumbers - 1) { strength += 0.05; } // checks for amount of Uppercase Letters - if (password.match(reUPPERCASELETTER)?.length ?? 0 >= minUpperCase - 1) { + if ((password.match(reUPPERCASELETTER)?.length ?? 0) >= minUpperCase - 1) { strength += 0.05; } -- cgit 1.5.1