Debugging

This commit is contained in:
Dillon
2023-07-28 11:56:59 +08:00
parent fd2161a276
commit 2f917ae765
+5 -5
View File
@@ -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);
}