Manual:DeleteLocalPasswords.php

MediaWiki version:
1.32
Category:MediaWiki code#DeleteLocalPasswords.php

Details

deleteLocalPasswords.php is a maintenance script that deletes local passwords for users.

This script is important when you merge your current wiki into a wiki farm and want to delete all local passwords from the database. It processes 100 items in every batch.

Options

OptionDescriptionRequired
--userIf specified, only checks the given userOptional
--deleteTo prevent accidents, you must provide this flag to delete passwordsOptional
--prefixInstead of deleting, make passwords invalid by prefixing with :null:. Make sure PasswordConfig has a 'null' entry. This is meant for testing before deletion.Optional
--unprefixInstead of deleting, undo the effect of --prefixOptional

Although the 'delete', 'prefix', and 'unprefix' options are not required, one of them must be used.

Usage

php maintenance/run.php deleteLocalPasswords [ --user| --delete| --prefix| --unprefix ]
Terminal
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

See also

Category:Maintenance scripts Category:User maintenance scripts
Category:Maintenance scripts Category:MediaWiki code Category:User maintenance scripts