https://bugzilla.wikimedia.org/show_bug.cgi?id=34385

Chris Davis <c_b_...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |c_b_...@yahoo.com

--- Comment #1 from Chris Davis <c_b_...@yahoo.com> 2012-09-12 08:45:11 UTC ---
This may not be the best way to fix it, but I've found that modifying
./includes/specials/SpecialUserlogin.php to include a check for
$wgUser->blockedBy() is able to get things working again.  

The specific problem I was running into was that $wgProxyList seems to allow
banned IPs to create accounts, but prevents them from editing.  By setting up a
bannedips.php file as specified on
http://www.mediawiki.org/wiki/Manual:Combating_spam, I was able to prevent spam
edits, but my Recent Changes were becoming bloated with a lot of bogus
accounts.

Old:
if ( !$wgUser->isAllowed( 'createaccount' ) ) {
        $wgOut->permissionRequired( 'createaccount' );
        return false;
} elseif ( $wgUser->isBlockedFromCreateAccount() ) {
        $this->userBlockedMessage();
        return false;
}


New:
if ( $wgUser->blockedBy()){
        $this->userBlockedMessage();
        return false;
} elseif ( !$wgUser->isAllowed( 'createaccount' ) ) {
        $wgOut->permissionRequired( 'createaccount' );
        return false;
} elseif ( $wgUser->isBlockedFromCreateAccount() ) {
        $this->userBlockedMessage();
        return false;
}

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to