initial testing success with owa

This commit is contained in:
zotlabs
2017-09-07 18:52:18 -07:00
parent 7e9162ef06
commit 1fbb1e6c2a
4 changed files with 7 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ logger('verified: ' . print_r($verified,true));
if($verified && $verified['header_signed'] && $verified['header_valid']) {
$token = random_string(32);
\Zotlabs\Zot\Verify::create('owt',0,token,$r[0]['hubloc_hash']);
\Zotlabs\Zot\Verify::create('owt',0,$token,$r[0]['hubloc_addr']);
$x = json_encode([ 'success' => true, 'token' => $token ]);
header('Content-Type: application/x-zot+json');
echo $x;