* (bug 7031) Report missing email on 'email password' instead of false success
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 17 Aug 2006 07:29:39 +0000 (07:29 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 17 Aug 2006 07:29:39 +0000 (07:29 +0000)
patch by SImetrical: http://bugzilla.wikimedia.org/attachment.cgi?id=2235

RELEASE-NOTES
includes/SpecialUserlogin.php

index 717b3a8..43d9ce7 100644 (file)
@@ -136,6 +136,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 5969) Clean up tab order on Special:Userlogin forms
 * (bug 3512) namespaceDupes now handles spaces and initial caps properly
 * (bug 7037) Fix regression in login tab order
+* (bug 7031) Report missing email on 'email password' instead of false success
 
 
 == Languages updated ==
index 8c1b39e..e4103a4 100644 (file)
@@ -413,7 +413,7 @@ class LoginForm {
                global $wgServer, $wgScript;
 
                if ( '' == $u->getEmail() ) {
-                       return wfMsg( 'noemail', $u->getName() );
+                       return new WikiError( wfMsg( 'noemail', $u->getName() ) );
                }
 
                $np = $u->randomPassword();