Update Authenticate.php
This commit is contained in:
parent
2b9569d642
commit
42aafb23e5
|
@ -41,7 +41,7 @@ class Authenticate
|
|||
{
|
||||
//登录状态检测
|
||||
if ($this->auth->guard($guard)->guest()) {
|
||||
$redirect = $request->input('redirect', $request->getUri());
|
||||
$redirect = $request->input('redirect', $request->header('referer'));
|
||||
// if ($request->isXmlHttpRequest()) {
|
||||
return response()->json([
|
||||
'code' => config('pdauth.code.unauthorized', 401),
|
||||
|
|
Loading…
Reference in New Issue
Block a user