| 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("用户名或密码错误");
|
|
|
}
|