simple password strength algorithmn takes length of password into account, if length is greater than 8

This commit is contained in:
Uwe Steinmann 2026-01-19 16:05:26 +01:00
parent e033268576
commit e27cd6fc49
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@
- links to operations on folders/documents can be put into a dropdown menu
- check for secure password when adding a new user
- secure password check can be turned off for admins
- simple password strength algorithmn takes length of password into account,
if length is greater than 8
--------------------------------------------------------------------------------
Changes in version 5.1.44

View File

@ -63,7 +63,7 @@ class Password_Strength {
$score += 25;
if(preg_match('/[^0-9a-zA-Z]+/', $password))
$score += 25;
if($this->password_length < 8)
// if($this->password_length < 8)
$score *= ($this->password_length/8);
$this->password_info['total_score'] = $score;