Merge pull request from rabuzarus/20180616_-_magic_auth_test_2

port hubzillas OpenWebAuth - don't initiate magic auth if the contact is allready authentificated
This commit is contained in:
Hypolite Petovan 2018-06-20 20:15:14 -04:00 committed by GitHub
commit e84c48b979
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1020,7 +1020,7 @@ class Profile
$contact = dba::selectFirst('contact',['id', 'url'], ['id' => $cid]); $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. // The visitor is already authenticated.
return; return;
} }