FIX_AUTHJWT : AADHAVAN
This commit is contained in:
parent
f5dae66ffd
commit
eb91ef3814
@ -18,15 +18,7 @@ class AuthJWT implements FilterInterface
|
||||
{
|
||||
public function before(RequestInterface $request, $arguments = null)
|
||||
{
|
||||
|
||||
$jwt ='';
|
||||
|
||||
if($request->headers()['Auth']){
|
||||
$jwt = $request->headers()['Auth'];
|
||||
}else{
|
||||
$jwt = $request->getHeader('Authorization');
|
||||
}
|
||||
|
||||
$jwt = $request->getHeader('Authorization');
|
||||
|
||||
if ($jwt) {
|
||||
if (JWTToken::validateJWT($jwt)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user