Pārlūkot izejas kodu

去掉国际区号 登录限制

Jason 1 gadu atpakaļ
vecāks
revīzija
f5c37a5888
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      application/common/library/Auth.php

+ 1 - 2
application/common/library/Auth.php

@@ -228,8 +228,7 @@ class Auth
     public function login($code, $account, $password)
     {
         //$field = Validate::is($account, 'email') ? 'email' : (Validate::regex($account, '/^1\d{10}$/') ? 'mobile' : 'username');
-        $user = Users::where('code', $code)
-                    ->where('mobile', $account)
+        $user = Users::where('mobile', $account)
                     ->find();
         if (!$user) {
             $this->setError('Account is incorrect');