From d69976d015e8a1509157545f3c569bbe76bda7a8 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Wed, 20 Mar 2024 20:55:34 -0300 Subject: [PATCH] FIX: Remove cache from login when redirecting --- app/resources/views/login/form.blade.php | 4 ++-- app/src/Middleware/Authentication.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/resources/views/login/form.blade.php b/app/resources/views/login/form.blade.php index 88a9d5b..6deca03 100644 --- a/app/resources/views/login/form.blade.php +++ b/app/resources/views/login/form.blade.php @@ -40,9 +40,9 @@ }).then(data => { if (data.login === true) { @if(isset($redirect_uri)) - window.location = '{{$redirect_uri}}' + window.location = '{{$redirect_uri}}?nocache=' + (new Date()).getTime() @else - window.location = '{{$urls->base}}' + window.location = '{{$urls->base}}?nocache=' + (new Date()).getTime() @endif } }) diff --git a/app/src/Middleware/Authentication.php b/app/src/Middleware/Authentication.php index 3ac21b5..a2530ac 100644 --- a/app/src/Middleware/Authentication.php +++ b/app/src/Middleware/Authentication.php @@ -20,7 +20,6 @@ class Authentication public function __invoke(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { - $this->logger->critical(var_export([$this->service->isIn(), $this->isValid($request)],true)); if ($this->service->isIn() or $this->isValid($request)) { return $handler->handle($request); }