diff options
author | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-04-09 21:48:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-09 21:48:25 +0300 |
commit | fd702100ea5a9a88131b387f8ea573a601a1b3ec (patch) | |
tree | 501660eb859b53907e6eb70a7443d7771568ccc7 /api/src | |
parent | add an elegant entropy check (diff) | |
download | server-fd702100ea5a9a88131b387f8ea573a601a1b3ec.tar.xz |
Update passwordStrength.ts
Diffstat (limited to 'api/src')
-rw-r--r-- | api/src/util/utility/passwordStrength.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/util/utility/passwordStrength.ts b/api/src/util/utility/passwordStrength.ts index 81ac2559..e75e48f6 100644 --- a/api/src/util/utility/passwordStrength.ts +++ b/api/src/util/utility/passwordStrength.ts @@ -46,7 +46,7 @@ export function checkPassword(password: string): number { strength = 0; } - var entropyMap; + let entropyMap; for (let i = 0; i < password.length; i++) { if (entropyMap[password[i]]) entropyMap[password[i]]++; else entropyMap[password[i]] = 1; |