r37364 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37363‎ | r37364 | r37365 >
Date:03:09, 9 July 2008
Author:werdna
Status:old
Tags:
Comment:
Take over accounts which already exist, so we're not giving random people admin access.
Modified paths:
  • /trunk/extensions/AbuseFilter/install.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/install.php
@@ -17,6 +17,10 @@
1818 if (!$user->getId()) {
1919 $user->addToDatabase();
2020 $user->saveSettings();
 21+} else {
 22+ // Sorry dude, we need this account.
 23+ $user->setPassword( null );
 24+ $user->saveSettings();
2125 }
2226
2327 # Promote user so it doesn't look too crazy.

Status & tagging log