mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 02:12:40 +01:00
removed strength normalization
This commit is contained in:
parent
8e564dc11e
commit
e12fae8abe
@ -101,10 +101,5 @@ export function checkPassword(password: string): number {
|
||||
}
|
||||
|
||||
strength += calculateEntropy(password);
|
||||
// Strength should between 0 and 1??? (am I wrong?)
|
||||
// Normalize the strength score to the range [0, 1]
|
||||
const MAX_STRENGTH = 2.0; // Maximum possible strength score
|
||||
strength = strength / MAX_STRENGTH;
|
||||
|
||||
return strength;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user