aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/magic.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/magic.php b/mod/magic.php
index 81fad3446..2ea686b1b 100644
--- a/mod/magic.php
+++ b/mod/magic.php
@@ -52,10 +52,11 @@ function magic_init(&$a) {
goaway($desturl);
}
+ $channel = $a->get_channel();
+
$token = random_string();
$token_sig = rsa_sign($token,$channel['channel_prvkey']);
- $channel = $a->get_channel();
$channel['token'] = $token;
$channel['token_sig'] = $token_sig;