mirror of
https://github.com/friendica/friendica
synced 2024-12-23 02:40:17 +00:00
Fix remote login issues between Friendica instances
This commit is contained in:
parent
0966d5f1b4
commit
95faba4446
2 changed files with 1 additions and 3 deletions
|
@ -795,7 +795,7 @@ class Profile
|
||||||
|
|
||||||
// Authenticate the visitor.
|
// Authenticate the visitor.
|
||||||
DI::userSession()->setMultiple([
|
DI::userSession()->setMultiple([
|
||||||
'authenticated' => 1,
|
'authenticated' => 0,
|
||||||
'visitor_id' => $visitor['id'],
|
'visitor_id' => $visitor['id'],
|
||||||
'visitor_handle' => $visitor['addr'],
|
'visitor_handle' => $visitor['addr'],
|
||||||
'visitor_home' => $visitor['url'],
|
'visitor_home' => $visitor['url'],
|
||||||
|
|
|
@ -156,9 +156,7 @@ class Magic extends BaseModule
|
||||||
|
|
||||||
$header = [
|
$header = [
|
||||||
'Accept' => 'application/x-zot+json',
|
'Accept' => 'application/x-zot+json',
|
||||||
'Content-Type' => 'application/x-zot+json',
|
|
||||||
'X-Open-Web-Auth' => Strings::getRandomHex(),
|
'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.
|
// Create a header that is signed with the local users private key.
|
||||||
|
|
Loading…
Reference in a new issue