]> git.mxchange.org Git - friendica.git/commitdiff
port hubzillas OpenWebAuth - don't initiate magic auth if the contact is allready...
authorrabuzarus <rabuzarus@t-online.de>
Thu, 21 Jun 2018 00:08:54 +0000 (02:08 +0200)
committerrabuzarus <rabuzarus@t-online.de>
Thu, 21 Jun 2018 00:08:54 +0000 (02:08 +0200)
src/Model/Profile.php

index 0bb18e14632dc27db23d56cf4af75973079f687f..31d9fe846f27a623879cb769028f3a16d1cb0b50 100644 (file)
@@ -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;
                                }