diff options
author | zotlabs <mike@macgirvin.com> | 2017-11-01 22:34:31 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-11-01 22:34:31 -0700 |
commit | f23c8e7597b6d96639738d0180e8cb277682ce23 (patch) | |
tree | ffcb15dd536800b67c9918756e41bb4accde3320 /Zotlabs/Module/Owa.php | |
parent | e539a9e7bdd035f96d8e8406e3433d34d99435da (diff) | |
parent | 11cdc36bcc7414002c2e72fd0c45d285d9515f0c (diff) | |
download | volse-hubzilla-f23c8e7597b6d96639738d0180e8cb277682ce23.tar.gz volse-hubzilla-f23c8e7597b6d96639738d0180e8cb277682ce23.tar.bz2 volse-hubzilla-f23c8e7597b6d96639738d0180e8cb277682ce23.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.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Module/Owa.php b/Zotlabs/Module/Owa.php index 4b0d855c5..d58fd7a41 100644 --- a/Zotlabs/Module/Owa.php +++ b/Zotlabs/Module/Owa.php @@ -41,7 +41,9 @@ class Owa extends \Zotlabs\Web\Controller { $ret['success'] = true; $token = random_string(32); \Zotlabs\Zot\Verify::create('owt',0,$token,$r[0]['hubloc_addr']); - $ret['token'] = $token; + $result = ''; + openssl_public_encrypt($token,$result,$hubloc['xchan_pubkey']); + $ret['encrypted_token'] = base64url_encode($result); } } } |