summary refs log tree commit diff
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2022-04-09 21:48:25 +0300
committerGitHub <noreply@github.com>2022-04-09 21:48:25 +0300
commitfd702100ea5a9a88131b387f8ea573a601a1b3ec (patch)
tree501660eb859b53907e6eb70a7443d7771568ccc7
parentadd an elegant entropy check (diff)
downloadserver-fd702100ea5a9a88131b387f8ea573a601a1b3ec.tar.xz
Update passwordStrength.ts
-rw-r--r--api/src/util/utility/passwordStrength.ts2
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;