Skip jwt token security when impersonating
This commit is contained in:
parent
75cc4b19e1
commit
31e5624aec
|
|
@ -32,6 +32,11 @@ class AuthenticateJWT
|
|||
}
|
||||
}
|
||||
|
||||
// If it's impersonating, skip the rest
|
||||
if ($payload->get('impersonating')) {
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
$error = null;
|
||||
if (! \Hash::check($request->ip(), $payload->get('ip'))) {
|
||||
$error = 'Origin IP is invalid';
|
||||
|
|
|
|||
Loading…
Reference in New Issue