aboutsummaryrefslogtreecommitdiffstats
path: root/mod/magic.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-21 15:42:58 -0800
committerfriendica <info@friendica.com>2013-01-21 15:42:58 -0800
commitab24a967b669f50a61faa3a5c9e09a8da4d40b52 (patch)
tree5d9ef4f33376bd4c1ed9ff413a6707c16f629b3f /mod/magic.php
parentdebf7f5f2691bab3c3b9c6ddd4fa3135f3d4aea2 (diff)
downloadvolse-hubzilla-ab24a967b669f50a61faa3a5c9e09a8da4d40b52.tar.gz
volse-hubzilla-ab24a967b669f50a61faa3a5c9e09a8da4d40b52.tar.bz2
volse-hubzilla-ab24a967b669f50a61faa3a5c9e09a8da4d40b52.zip
re-arrange the order a bit
Diffstat (limited to 'mod/magic.php')
-rw-r--r--mod/magic.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/magic.php b/mod/magic.php
index 3ae54bea0..81fad3446 100644
--- a/mod/magic.php
+++ b/mod/magic.php
@@ -55,11 +55,13 @@ function magic_init(&$a) {
$token = random_string();
$token_sig = rsa_sign($token,$channel['channel_prvkey']);
- $recip = array(array('guid' => $x[0]['hubloc_guid'],'guid_sig' => $x[0]['hubloc_guid_sig']));
$channel = $a->get_channel();
$channel['token'] = $token;
$channel['token_sig'] = $token_sig;
+
+ $recip = array(array('guid' => $x[0]['hubloc_guid'],'guid_sig' => $x[0]['hubloc_guid_sig']));
+
$hash = random_string();
$r = q("insert into verify ( type, channel, token, meta, created) values ('%s','%d','%s','%s','%s')",