Fix session failure errors when trying to create an account
authorKunal Mehta <legoktm@gmail.com>
Sat, 11 Oct 2014 23:41:51 +0000 (16:41 -0700)
committerReedy <reedy@wikimedia.org>
Sat, 11 Oct 2014 23:44:39 +0000 (23:44 +0000)
wpCreateaccount was no longer being passed in the POST request,
so the special page thought a login attempt was occurring rather
than an account creation attempt, so it checked against the wrong
token, resulting in session failure errors.

Bug: 71862
Change-Id: I9519cb264be9f587ef4354ba1fd03962a52755a2

includes/templates/Usercreate.php

index d435615..4eea01c 100644 (file)
@@ -258,6 +258,7 @@ class UsercreateTemplate extends BaseTemplate {
                                        $this->getMsg( $this->data['loggedin'] ? 'createacct-another-submit' : 'createacct-submit' ),
                                        $attrs = array(
                                                'id' => 'wpCreateaccount',
+                                               'name' => 'wpCreateaccount',
                                                'tabindex' => $tabIndex++
                                        ),
                                        array(