Anons should not be able to use the change e-mail form at all
authorChad Horohoe <chadh@wikimedia.org>
Fri, 8 Nov 2013 18:55:57 +0000 (10:55 -0800)
committerChad Horohoe <chadh@wikimedia.org>
Fri, 8 Nov 2013 18:55:58 +0000 (10:55 -0800)
They already bailed out on GET, but we should bail here on POST
rather than bait-and-switching.

Change-Id: Iaf0474e89d7e660e2025e02bda146aa23ecc592b

includes/specials/SpecialChangeEmail.php

index aab839f..d02886f 100644 (file)
@@ -75,7 +75,7 @@ class SpecialChangeEmail extends UnlistedSpecialPage {
                $user = $this->getUser();
                $request = $this->getRequest();
 
-               if ( !$request->wasPosted() && !$user->isLoggedIn() ) {
+               if ( !$user->isLoggedIn() ) {
                        $this->error( 'changeemail-no-info' );
 
                        return;