summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
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; }