port hubzillas OpenWebAuth - don't initiate magic auth if the contact is allready authentificated
This commit is contained in:
parent
04fe3acb69
commit
02d96623f2
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue