Use nocookiesfornew on account creation if no cookies
authorBrian Wolff <bawolff+wn@gmail.com>
Fri, 4 Jan 2013 19:35:12 +0000 (15:35 -0400)
committerBrian Wolff <bawolff+wn@gmail.com>
Fri, 4 Jan 2013 19:35:12 +0000 (15:35 -0400)
follow-up I402c6bebcf.

Previously we used nocookiesfornew msg if the user tried to
make an account, and their cookies were missing. I402c6
changed this to session_failure, which was previously
used only for the cases where the token was tampered
with. I think the previous message was better as
it actually mentioned to the user that them not
having cookies could be the cause.

Also its removal may have been accidental as its
not mentioned in the commit msg of that change.
As well that change removed all uses of that
msg from core, but yet didn't delete it
from MessagesEn.php.

Change-Id: I421e294e4a3ddaa0eea90f2abf215af82ee6a00a

includes/specials/SpecialUserlogin.php

index 098caaf..3a73ebd 100644 (file)
@@ -328,7 +328,7 @@ class LoginForm extends SpecialPage {
                # Request forgery checks.
                if ( !self::getCreateaccountToken() ) {
                        self::setCreateaccountToken();
-                       return Status::newFatal( 'sessionfailure' );
+                       return Status::newFatal( 'nocookiesfornew' );
                }
 
                # The user didn't pass a createaccount token