From 02d96623f24dfe46790f7430b3e20bf7f0abdc99 Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Thu, 21 Jun 2018 02:08:54 +0200 Subject: [PATCH] port hubzillas OpenWebAuth - don't initiate magic auth if the contact is allready authentificated --- src/Model/Profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }