This commit is contained in:
James Cole
2020-11-07 17:22:11 +01:00
parent 4fa92ed5f7
commit 647c9c5eb0
2 changed files with 3 additions and 4 deletions

View File

@@ -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) {