MediaWiki version: | ≥ 1.32 |
MediaWiki file: | deleteLocalPasswords.php|
---|---|
Location: | maintenance/ |
Source code: | master • 1.40.0 • 1.39.4 • 1.35.11 |
Classes: | DeleteLocalPasswords |
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
Option | Description | Required |
---|---|---|
--user | If specified, only checks the given user | Optional |
--delete | To prevent accidents, you must provide this flag to delete passwords | Optional |
--prefix | Instead of deleting, make passwords invalid by prefixing with :null:. Make sure PasswordConfig has a 'null' entry. This is meant for testing before deletion. | Optional |
--unprefix | Instead of deleting, undo the effect of --prefix | Optional |
Although the 'delete', 'prefix', and 'unprefix' options are not required, one of them must be used.
Usage
php maintenance/deleteLocalPasswords.php [ --user| --delete| --prefix| --unprefix ]
Terminal
$ php maintenance/deleteLocalPasswords.php --delete ... querying from '' done. (wrote 4 rows)
See also
- Manual:$wgPasswordConfig
- Manual:ChangePassword.php
- Manual:WrapOldPasswords.php
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.