From: rabuzarus Date: Thu, 21 Jun 2018 00:08:54 +0000 (+0200) Subject: port hubzillas OpenWebAuth - don't initiate magic auth if the contact is allready... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=02d96623f24dfe46790f7430b3e20bf7f0abdc99;p=friendica.git port hubzillas OpenWebAuth - don't initiate magic auth if the contact is allready authentificated --- diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 0bb18e1463..31d9fe846f 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -1020,7 +1020,7 @@ class Profile $contact = dba::selectFirst('contact',['id', 'url'], ['id' => $cid]); - if (DBM::is_result($contact) && remote_user() && remote_user() === $contact['id']) { + if (DBM::is_result($contact) && remote_user() && remote_user() == $contact['id']) { // The visitor is already authenticated. return; }