MediaWiki version:
1.3
MediaWiki file: checkUsernames.php
Location: maintenance/
Source code: master 1.40.0 1.39.4 1.35.11
Classes: checkUsernames

Details

checkUsernames.php file is a maintenance script that is used to check that all usernames in the database (user table) are actually valid. Existing usernames can become invalid if User::isValidUserName() is altered or if $wgMaxNameChars is changed.

Options

This script does not accept any options.

Usage

php checkUsernames.php

In case invalid usernames are found, the script returns the user_id and the username for each of the affected users.


Terminal
$ php maintenance/checkUsernames.php

Found:      1: 'Jay'
Found:      2: 'MediaWiki default'
Found:      4: 'Maintenance script'
Found:      5: 'ScriptImporter'

See also

  • removeUnusedAccounts.php
  • deleteLocalPasswords.php
  • invalidateUserSessions.php
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.