Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix : Forward REMOTE_USER
Julien Cassagne700db14de27b
diff --git a/app/Support/Authentication/RemoteUserGuard.php b/app/Support/Authentication/RemoteUserGuard.phpindex 7a333e7006..3f7b049253 100644--- a/app/Support/Authentication/RemoteUserGuard.php+++ b/app/Support/Authentication/RemoteUserGuard.php@@ -67,9 +67,9 @@ class RemoteUserGuard implements Guardreturn;}- // Get the user identifier from $_SERVER+ // Get the user identifier from $_SERVER or apache filtered headers$header = config('auth.guard_header', 'REMOTE_USER');- $userID = request()->server($header) ?? null;+ $userID = request()->server($header) ?? apache_request_headers()[$header] ?? null;if (null === $userID) {Log::error(sprintf('No user in header "%s".', $header));throw new FireflyException('The guard header was unexpectedly empty. See the logs.');