* (bug 12416) Fix password setting for createAndPromote.php
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 28 Dec 2007 02:22:20 +0000 (02:22 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 28 Dec 2007 02:22:20 +0000 (02:22 +0000)
RELEASE-NOTES
maintenance/createAndPromote.php

index 9a9b2b8..6a43665 100644 (file)
@@ -269,6 +269,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 12380) Bot-friendly EditPage::spamPage
 * (bug 8066) Spaces can't be entered in special page aliases
 * Hide undo link if user can't edit article
+* (bug 12416) Fix password setting for createAndPromote.php
+
 
 == Parser changes in 1.12 ==
 
index af4a1da..0d30fe7 100644 (file)
@@ -38,7 +38,7 @@ if( !is_object( $user ) ) {
 # Insert the account into the database
 $user->addToDatabase();
 $user->setPassword( $password );
-$user->setToken();
+$user->saveSettings();
 
 # Promote user
 $user->addGroup( 'sysop' );