summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-04-19 22:44:18 +0200
committerRory& <root@rory.gay>2026-04-19 22:45:37 +0200
commitc5504878b830ade3f70c94a06a328d605824e548 (patch)
tree07f47e834243d40c9e27ab4446b5a63dbf270294 /src/api
parenteslint: default-case (diff)
downloadserver-ts-c5504878b830ade3f70c94a06a328d605824e548.tar.xz
eslint: yoda
Diffstat (limited to 'src/api')
-rw-r--r--src/api/util/utility/passwordStrength.ts4
1 files changed, 2 insertions, 2 deletions
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; }