xiaogang 3 年之前
父節點
當前提交
565ec7e1f0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/Api/AuthorizationsController.php

+ 1 - 1
app/Http/Controllers/Api/AuthorizationsController.php

xqd
@@ -123,7 +123,7 @@ class AuthorizationsController extends Controller
                 throw new Exception("用户不存在");
             }
             $credentials = ['mobile'=>$mobile,'password'=>$password];
-            Auth::guard('api')->refresh();
+
             if (!auth('api')->attempt($credentials)) {
                 throw new Exception("用户名或密码错误");
             }