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;
}
|