mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-02-02 06:31:56 +00:00
simple password strength algorithmn takes length of password into account, if length is greater than 8
This commit is contained in:
parent
e033268576
commit
e27cd6fc49
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user