From 95faba4446762b1084cff385b3afac160080ae44 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 26 May 2024 20:04:48 +0000 Subject: [PATCH] Fix remote login issues between Friendica instances --- src/Model/Profile.php | 2 +- src/Module/Magic.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 5b8cf5bf18..9db15b52c4 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -795,7 +795,7 @@ class Profile // Authenticate the visitor. DI::userSession()->setMultiple([ - 'authenticated' => 1, + 'authenticated' => 0, 'visitor_id' => $visitor['id'], 'visitor_handle' => $visitor['addr'], 'visitor_home' => $visitor['url'], diff --git a/src/Module/Magic.php b/src/Module/Magic.php index 99db078f96..183184f688 100644 --- a/src/Module/Magic.php +++ b/src/Module/Magic.php @@ -156,9 +156,7 @@ class Magic extends BaseModule $header = [ 'Accept' => 'application/x-zot+json', - 'Content-Type' => 'application/x-zot+json', 'X-Open-Web-Auth' => Strings::getRandomHex(), - 'Host' => strtolower(parse_url($gserver['url'], PHP_URL_HOST)), ]; // Create a header that is signed with the local users private key.