Debugging

This commit is contained in:
Dillon
2023-07-28 12:03:46 +08:00
parent 2f917ae765
commit 442ae2a883
+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);
}