xiaogang 3 years ago
parent
commit
565ec7e1f0
1 changed files with 1 additions and 1 deletions
  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("用户名或密码错误");
             }