]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Make sure the session token gets output no matter what (whoops)
authorZach Copley <zach@status.net>
Sat, 17 Sep 2011 22:50:13 +0000 (15:50 -0700)
committerZach Copley <zach@status.net>
Sat, 17 Sep 2011 22:50:13 +0000 (15:50 -0700)
plugins/TwitterBridge/twitterauthorization.php

index baaf4a1af7fc7b6c36b7752d422e6258908a5d7d..1a7234214e132d5867d99f86988333cb1b8e9c7c 100644 (file)
@@ -363,11 +363,11 @@ class TwitterauthorizationAction extends Action
         $this->hidden('twuid', $this->twuid);
         $this->hidden('tw_fields_screen_name', $this->tw_fields['screen_name']);
         $this->hidden('tw_fields_name', $this->tw_fields['fullname']);
+        $this->hidden('token', common_session_token());
 
         // Don't allow new account creation if site is flagged as invite only
        if (common_config('site', 'inviteonly') == false) {
             $this->elementStart('fieldset');
-            $this->hidden('token', common_session_token());
             $this->element('legend', null,
                            // TRANS: Fieldset legend.
                            _m('Create new account'));