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

@@ -123,7 +123,7 @@ class Finger {
$x = json_decode($result['body'], true);
$verify = \Zotlabs\Web\HTTPSig::verify($result,(($x) ? $x['key'] : ''));
if($x && (! $verify['header_valid'])) {
$signed_token = ((is_array($x) && array_key_exists('signed_token', $x)) ? $x['signed_token'] : null);
if($signed_token) {

View File

@@ -33,7 +33,7 @@ class Verify {
function get_meta($type,$channel_id,$token) {
$r = q("select id from verify where vtype = '%s' and channel = %d and token = '%s' limit 1",
$r = q("select id, meta from verify where vtype = '%s' and channel = %d and token = '%s' limit 1",
dbesc($type),
intval($channel_id),
dbesc($token)