FIX: Remove cache from login when redirecting
This commit is contained in:
@ -40,9 +40,9 @@
|
|||||||
}).then(data => {
|
}).then(data => {
|
||||||
if (data.login === true) {
|
if (data.login === true) {
|
||||||
@if(isset($redirect_uri))
|
@if(isset($redirect_uri))
|
||||||
window.location = '{{$redirect_uri}}'
|
window.location = '{{$redirect_uri}}?nocache=' + (new Date()).getTime()
|
||||||
@else
|
@else
|
||||||
window.location = '{{$urls->base}}'
|
window.location = '{{$urls->base}}?nocache=' + (new Date()).getTime()
|
||||||
@endif
|
@endif
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -20,7 +20,6 @@ class Authentication
|
|||||||
|
|
||||||
public function __invoke(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
|
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)) {
|
if ($this->service->isIn() or $this->isValid($request)) {
|
||||||
return $handler->handle($request);
|
return $handler->handle($request);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user