黄宗昌 2 年 前
コミット
3e46db1f27
1 ファイル変更3 行追加3 行削除
  1. 3 3
      app/Http/Controllers/V1/AuthController.php

+ 3 - 3
app/Http/Controllers/V1/AuthController.php

xqd
@@ -83,9 +83,9 @@ class AuthController extends Controller
             return $this->error('账号不存在');
         }
         // 账号是否禁用
-        if($user->status == 0){
-            return $this->error('账号已被禁用!');
-        }
+//        if($user->status == 0){
+//            return $this->error('账号已被禁用!');
+//        }
         $credentials1 = ['account' => $account, 'password' => $password];
         if (!auth('api')->attempt($credentials1)) {
             return $this->error('密码错误!');