aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Owa.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-01-15 21:49:28 -0800
committerzotlabs <mike@macgirvin.com>2018-01-15 21:49:28 -0800
commit05f9f0a393d7e414481f3e33e651d33f341e59b0 (patch)
tree093113813f751891d6f1686e9351727b449c102b /Zotlabs/Module/Owa.php
parent76c8bbf7b83d6cdbd0b16ebbdaa4cab48662221f (diff)
parent746ea5a3691a67ceb176352e8b6fcfe0f2dc99d6 (diff)
downloadvolse-hubzilla-05f9f0a393d7e414481f3e33e651d33f341e59b0.tar.gz
volse-hubzilla-05f9f0a393d7e414481f3e33e651d33f341e59b0.tar.bz2
volse-hubzilla-05f9f0a393d7e414481f3e33e651d33f341e59b0.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs/Module/Owa.php')
-rw-r--r--Zotlabs/Module/Owa.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/Zotlabs/Module/Owa.php b/Zotlabs/Module/Owa.php
index 9a39fe4c0..23ee14f39 100644
--- a/Zotlabs/Module/Owa.php
+++ b/Zotlabs/Module/Owa.php
@@ -38,14 +38,19 @@ 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 header: ' . print_r($verified,true),LOGGER_DATA);
+ 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']);
+ }
}
}
}