From 2c6bd1ca77a3ed1020448260d50338c005715b55 Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Fri, 4 Jan 2013 15:35:12 -0400 Subject: [PATCH] Use nocookiesfornew on account creation if no cookies 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index 098caaf96d..3a73ebda51 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -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 -- 2.20.1