diff --git a/module/admin/model.php b/module/admin/model.php index 2dfd7a04b2..fcb74b5bb7 100644 --- a/module/admin/model.php +++ b/module/admin/model.php @@ -248,10 +248,10 @@ class adminModel extends model } if(isset($weaks[$user->password])) return true; - if($user->password and md5($user->account)) return true; - if($user->phone and $user->password and md5($user->phone)) return true; - if($user->mobile and $user->password and md5($user->mobile)) return true; - if($user->birthday and $user->password and md5($user->birthday)) 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; } }