We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9606433 commit ac27dbfCopy full SHA for ac27dbf
laravel/app/Http/Controllers/Api/UserController.php
@@ -22,7 +22,7 @@ public function __construct()
22
// 这样的结果是,token 只能在有效期以内进行刷新,过期无法刷新
23
// 如果把 refresh 也放进去,token 即使过期但仍在刷新期以内也可刷新
24
// 不过刷新一次作废
25
- $this->middleware('auth:api', ['except' => ['password']]);
+ $this->middleware('auth:api', ['except' => ['login']]);
26
// 另外关于上面的中间件,官方文档写的是『auth:api』
27
// 但是我推荐用 『jwt.auth』,效果是一样的,但是有更加丰富的报错信息返回
28
}
0 commit comments