From 2f917ae76504778c7e3afcedbfbf7b77fa36ac88 Mon Sep 17 00:00:00 2001 From: Dillon Date: Fri, 28 Jul 2023 11:56:59 +0800 Subject: [PATCH] Debugging --- app/Http/Middleware/ValidateToken.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Middleware/ValidateToken.php b/app/Http/Middleware/ValidateToken.php index 846972aa..288a3311 100644 --- a/app/Http/Middleware/ValidateToken.php +++ b/app/Http/Middleware/ValidateToken.php @@ -33,15 +33,15 @@ class ValidateToken */ public function handle($request, Closure $next) { - try { + // try { - if(!$this->manager->check()){ throw new AccessUnauthorisedException(); } + // if(!$this->manager->check()){ throw new AccessUnauthorisedException(); } - } catch (Exception $exception) { + // } catch (Exception $exception) { - return (new ApiResponseObject('Authentication', 'To keep your account secure we need to re-validate your account', HttpStatus::ACCESS_UNAUTHORISED))->handler(); + // return (new ApiResponseObject('Authentication', 'To keep your account secure we need to re-validate your account', HttpStatus::ACCESS_UNAUTHORISED))->handler(); - } + // } return $next($request); }