aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-01-13 12:24:55 -0800
committerzotlabs <mike@macgirvin.com>2018-01-13 12:24:55 -0800
commit8892568652c2fc56e39611660d9bec4770c4354b (patch)
tree9541da5a1b7743d918ad79747c6c780e536ce9f3 /Zotlabs
parent619f8f752b95749c2c4b90c204aee1dbba1dee78 (diff)
downloadvolse-hubzilla-8892568652c2fc56e39611660d9bec4770c4354b.tar.gz
volse-hubzilla-8892568652c2fc56e39611660d9bec4770c4354b.tar.bz2
volse-hubzilla-8892568652c2fc56e39611660d9bec4770c4354b.zip
improve owa logging
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Owa.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Module/Owa.php b/Zotlabs/Module/Owa.php
index 9a39fe4c0..8764a33ee 100644
--- a/Zotlabs/Module/Owa.php
+++ b/Zotlabs/Module/Owa.php
@@ -38,14 +38,18 @@ class Owa extends \Zotlabs\Web\Controller {
foreach($r as $hubloc) {
$verified = \Zotlabs\Web\HTTPSig::verify('',$hubloc['xchan_pubkey']);
if($verified && $verified['header_signed'] && $verified['header_valid']) {
+ logger('OWA success: ' . $hubloc['hubloc_addr'],LOGGER_DATA);
$ret['success'] = true;
$token = random_string(32);
- \Zotlabs\Zot\Verify::create('owt',0,$token,$r[0]['hubloc_addr']);
+ \Zotlabs\Zot\Verify::create('owt',0,$token,$hubloc['hubloc_addr']);
$result = '';
openssl_public_encrypt($token,$result,$hubloc['xchan_pubkey']);
$ret['encrypted_token'] = base64url_encode($result);
break;
}
+ else {
+ logger('OWA fail: ' . $hubloc['hubloc_id'] . ' ' . $hubloc['hubloc_addr']);
+ }
}
}
}