mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 09:51:40 +00:00
This commit is contained in:
@@ -70,8 +70,6 @@ class RemoteUserGuard implements Guard
|
|||||||
$header = config('auth.guard_header', 'REMOTE_USER');
|
$header = config('auth.guard_header', 'REMOTE_USER');
|
||||||
$userID = request()->server($header) ?? apache_request_headers()[$header] ?? null;
|
$userID = request()->server($header) ?? apache_request_headers()[$header] ?? null;
|
||||||
|
|
||||||
$userID = 'james@firefly';
|
|
||||||
|
|
||||||
if (null === $userID) {
|
if (null === $userID) {
|
||||||
Log::error(sprintf('No user in header "%s".', $header));
|
Log::error(sprintf('No user in header "%s".', $header));
|
||||||
throw new FireflyException('The guard header was unexpectedly empty. See the logs.');
|
throw new FireflyException('The guard header was unexpectedly empty. See the logs.');
|
||||||
|
Reference in New Issue
Block a user