/[LeafOK_CVS]/fenglin/lib/passwd.inc.php
ViewVC logotype

Diff of /fenglin/lib/passwd.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 by sysadm, Sun Mar 30 13:11:54 2025 UTC Revision 1.2 by sysadm, Mon Mar 31 13:58:58 2025 UTC
# Line 5  function verify_pass_complexity($passwor Line 5  function verify_pass_complexity($passwor
5          $num_count = 0;          $num_count = 0;
6          $upper_case = 0;          $upper_case = 0;
7          $lower_case = 0;          $lower_case = 0;
8            $len = strlen($password);
9    
10          if (strlen($password) < $min_len)          if ($len < $min_len)
11          {          {
12                  return false;                  return false;
13          }          }
# Line 16  function verify_pass_complexity($passwor Line 17  function verify_pass_complexity($passwor
17                  return false;                  return false;
18          }          }
19    
20          foreach ($password as $c)          for ($i = 0; $i < $len; $i++)
21          {          {
22                    $c = $password[$i];
23                    
24                  if (isset($ch[$c]))                  if (isset($ch[$c]))
25                  {                  {
26                          $ch[$c]++;                          $ch[$c]++;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1