]> git.mxchange.org Git - friendica.git/commitdiff
Fix remote login issues between Friendica instances
authorMichael <heluecht@pirati.ca>
Sun, 26 May 2024 20:04:48 +0000 (20:04 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 26 May 2024 20:04:48 +0000 (20:04 +0000)
src/Model/Profile.php
src/Module/Magic.php

index 5b8cf5bf18703bf2d4f185c93549ac2197fa282b..9db15b52c4b575ce0bd437152fbbdeb583332c07 100644 (file)
@@ -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'],
index 99db078f961263244275a8751102fad62b672cbb..183184f68857f29a103f3a22b7fe31bb63d6f55b 100644 (file)
@@ -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.