Manual:$wgPasswordDefault

From MediaWiki.org
Jump to: navigation, search
Access: $wgPasswordDefault
Default password type to use when hashing user passwords.
Introduced in version: 1.24.0
Removed in version: still in use
Allowed values: string
Default value: pbkdf2

Other settings: Alphabetical | By Function

Details[edit | edit source]

Default password type to use when hashing user passwords.

How to use it[edit | edit source]

  1. Check the DefaultSettings.php in the includes folder for the available and preset password encryption types.
  2. Add $wgPasswordDefault = ; with the parameter to the LocalSettings.php in case you want to change the encryption
    1. Example: $wgPasswordDefault = 'B';
  3. In order for the password to be saved in a new format, one login from each user has to be done. This way the database is updated.
  4. Check the MySQL-database whether the new format has been applied to the fields.
    1. Example: Select user_password from wikidbname.user where user_password like ':B:%';

See also[edit | edit source]