mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
re-install: make sure to fetch the latest hubloc in api_auth otherwise authentication might fail
This commit is contained in:
@@ -102,13 +102,13 @@ function api_login(&$a) {
|
|||||||
if ($sigblock) {
|
if ($sigblock) {
|
||||||
$keyId = str_replace('acct:', '', $sigblock['keyId']);
|
$keyId = str_replace('acct:', '', $sigblock['keyId']);
|
||||||
if ($keyId) {
|
if ($keyId) {
|
||||||
$r = q("select * from hubloc where hubloc_addr = '%s' or hubloc_id_url = '%s'",
|
$r = q("select * from hubloc where hubloc_addr = '%s' or hubloc_id_url = '%s' order by hubloc_id desc",
|
||||||
dbesc($keyId),
|
dbesc($keyId),
|
||||||
dbesc($keyId)
|
dbesc($keyId)
|
||||||
);
|
);
|
||||||
if (!$r) {
|
if (!$r) {
|
||||||
HTTPSig::get_zotfinger_key($keyId);
|
HTTPSig::get_zotfinger_key($keyId);
|
||||||
$r = q("select * from hubloc where hubloc_addr = '%s' or hubloc_id_url = '%s'",
|
$r = q("select * from hubloc where hubloc_addr = '%s' or hubloc_id_url = '%s' order by hubloc_id desc",
|
||||||
dbesc($keyId),
|
dbesc($keyId),
|
||||||
dbesc($keyId)
|
dbesc($keyId)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user