Skip to content

Commit

Permalink
Fix authcheck missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Nov 25, 2024
1 parent 5d18d8c commit 4e2c859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Core/Middleware/AuthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function handle(IncomingRequest $request, Closure $next): Response
if ( $request instanceof ApiRequest) {
self::dispatchEvent('before_api_request', ['application' => app()], 'leantime.core.middleware.apiAuth.handle');
}
$authCheckResponse = $this->authenticate($request, array_keys($this->config->get('auth.guards')), $loginRedirect);
$authCheckResponse = $this->authenticate($request, array_keys($this->config->get('auth.guards')), $loginRedirect, $next);

if ($authCheckResponse !== true) {
return $authCheckResponse;
Expand Down

0 comments on commit 4e2c859

Please sign in to comment.