* adjust for safe.

This commit is contained in:
wangyidong
2017-05-15 16:22:43 +08:00
parent 954a16cd15
commit 954539c4c8
5 changed files with 11 additions and 5 deletions
+6 -1
View File
@@ -276,6 +276,11 @@ class adminModel extends model
$weaks[$weak] = $weak;
}
return isset($weaks[$user->password]);
if(isset($weaks[$user->password])) return true;
if($user->password == md5($user->account)) return true;
if($user->phone and $user->password == md5($user->phone)) return true;
if($user->mobile and $user->password == md5($user->mobile)) return true;
if($user->birthday and $user->password == md5($user->birthday)) return true;
return false;
}
}