* adjust for check password.

This commit is contained in:
wangyidong
2015-05-20 13:45:54 +08:00
parent 0cfdc19e15
commit 061815355a
9 changed files with 19 additions and 18 deletions
+2 -1
View File
@@ -509,6 +509,7 @@ class userModel extends model
$hash = sha1($record->account . $record->password . $record->last);
$user = $password == $hash ? $record : '';
}
if(!$user and md5($password) == $record->password) $user = $record;
}
if($user)
@@ -970,7 +971,7 @@ class userModel extends model
}
$strength += strlen($uniqueChars) * 2;
$strength = $strength > 99 ? 99 : $strength;
$strength = $strength > 89 ? 89 : $strength;
$strength = floor($strength / 10);
$strength = floor($strength / 3);