Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix #4023
James Cole647c9c5eb027
diff --git a/app/Http/Controllers/Admin/HomeController.php b/app/Http/Controllers/Admin/HomeController.phpindex 2add59ac7e..8e28465697 100644--- a/app/Http/Controllers/Admin/HomeController.php+++ b/app/Http/Controllers/Admin/HomeController.php@@ -61,11 +61,10 @@ class HomeController extends Controller$mainTitleIcon = 'fa-hand-spock-o';$email = auth()->user()->email;$pref = app('preferences')->get('remote_guard_alt_email', null);- if(null !== $pref) {+ if(null !== $pref && is_string($pref->data)) {$email = $pref->data;}--+ Log::debug('Email is ', [$email]);return view('admin.index', compact('title', 'mainTitleIcon','email'));}diff --git a/app/Support/Authentication/RemoteUserGuard.php b/app/Support/Authentication/RemoteUserGuard.phpindex 3f7b049253..cf8d4688ce 100644--- a/app/Support/Authentication/RemoteUserGuard.php+++ b/app/Support/Authentication/RemoteUserGuard.php@@ -80,7 +80,7 @@ class RemoteUserGuard implements Guard// store email address if present in header and not already set.$header = config('auth.guard_email');- $emailAddress = request()->server($header) ?? null;+ $emailAddress = (string) (request()->server($header) ?? null);$preference = app('preferences')->getForUser($retrievedUser, 'remote_guard_alt_email', null);if (null !== $emailAddress && null === $preference && $emailAddress !== $userID) {