James Cole 2022-12-11 06:21:08 +01:00
parent c8d6ef3782
commit 352eedb136
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -70,8 +70,6 @@ class RemoteUserGuard implements Guard
$header = config('auth.guard_header', 'REMOTE_USER');
$userID = request()->server($header) ?? apache_request_headers()[$header] ?? null;
$userID = 'james@firefly';
if (null === $userID) {
Log::error(sprintf('No user in header "%s".', $header));
throw new FireflyException('The guard header was unexpectedly empty. See the logs.');