diff options
author | friendica <info@friendica.com> | 2013-01-21 15:39:05 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-21 15:39:05 -0800 |
commit | debf7f5f2691bab3c3b9c6ddd4fa3135f3d4aea2 (patch) | |
tree | 0ca979bd5a84b2b64831e3627beaee925b6e20d0 /include | |
parent | 6766f7f829923209e5ef4fda1452ed0b2ce0f09d (diff) | |
download | volse-hubzilla-debf7f5f2691bab3c3b9c6ddd4fa3135f3d4aea2.tar.gz volse-hubzilla-debf7f5f2691bab3c3b9c6ddd4fa3135f3d4aea2.tar.bz2 volse-hubzilla-debf7f5f2691bab3c3b9c6ddd4fa3135f3d4aea2.zip |
more work on magic auth
Diffstat (limited to 'include')
-rw-r--r-- | include/zot.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php index 0290d1d46..fc1241ff2 100644 --- a/include/zot.php +++ b/include/zot.php @@ -101,6 +101,12 @@ function zot_build_packet($channel,$type = 'notify',$recipients = null, $remote_ 'version' => ZOT_REVISION ); + // These fields are present when using magic auth + + if(array_key_exists('token',$channel)) { + $data['sender']['token'] = $channel['token']; + $data['sender']['token_sig'] = $channel['token_sig']; + } if($recipients) $data['recipients'] = $recipients; |