mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-23 19:05:22 +00:00
Update passwordStrength.ts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user