diff options
author | zotlabs <mike@macgirvin.com> | 2016-11-30 16:22:31 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-11-30 16:22:31 -0800 |
commit | 5b09829959948b85fa6b156abaa091c40d88a9e1 (patch) | |
tree | bd7dc8050230d7e80dfb72d8d02b2e83c4b00942 /Zotlabs/Zot/Auth.php | |
parent | 1fe1194ef42026b70e62a678133d025dd0553756 (diff) | |
download | volse-hubzilla-5b09829959948b85fa6b156abaa091c40d88a9e1.tar.gz volse-hubzilla-5b09829959948b85fa6b156abaa091c40d88a9e1.tar.bz2 volse-hubzilla-5b09829959948b85fa6b156abaa091c40d88a9e1.zip |
zot 1.2
Diffstat (limited to 'Zotlabs/Zot/Auth.php')
-rw-r--r-- | Zotlabs/Zot/Auth.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Zot/Auth.php b/Zotlabs/Zot/Auth.php index 0837be21a..d4d3bee1d 100644 --- a/Zotlabs/Zot/Auth.php +++ b/Zotlabs/Zot/Auth.php @@ -149,9 +149,13 @@ class Auth { // The actual channel sending the packet ($c[0]) is not important, but this provides a // generic zot packet with a sender which can be verified + $x = q("select site_crypto from site where site_url = '%s' limit 1", + dbesc($hubloc['hubloc_url']) + ); + $p = zot_build_packet($channel,$type = 'auth_check', array(array('guid' => $hubloc['hubloc_guid'],'guid_sig' => $hubloc['hubloc_guid_sig'])), - $hubloc['hubloc_sitekey'], $this->sec); + $hubloc['hubloc_sitekey'], (($x) ? $x[0]['site_crypto'] : ''), $this->sec); $this->Debug('auth check packet created using sitekey ' . $hubloc['hubloc_sitekey']); $this->Debug('packet contents: ' . $p); |