aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-11-27 09:40:23 +0000
committerMario <mario@mariovavti.com>2022-11-27 09:40:23 +0000
commite87887c3287a22b0d4a261de9be21d13bc02f174 (patch)
treec8889ecbd67aab418303e5ddb4ed9fc0035d0698 /include
parentc76f19f19a8f322100cb09b5e1633da141afedcc (diff)
downloadvolse-hubzilla-e87887c3287a22b0d4a261de9be21d13bc02f174.tar.gz
volse-hubzilla-e87887c3287a22b0d4a261de9be21d13bc02f174.tar.bz2
volse-hubzilla-e87887c3287a22b0d4a261de9be21d13bc02f174.zip
re-install: make sure to fetch the latest hubloc in api_auth otherwise authentication might fail
Diffstat (limited to 'include')
-rw-r--r--include/api_auth.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/api_auth.php b/include/api_auth.php
index 0395dae7a..be886fbb2 100644
--- a/include/api_auth.php
+++ b/include/api_auth.php
@@ -102,13 +102,13 @@ function api_login(&$a) {
if ($sigblock) {
$keyId = str_replace('acct:', '', $sigblock['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)
);
if (!$r) {
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)
);