Manual:$wgPasswordDefault
From MediaWiki.org
![]() |
Please expand this page. |
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]
- Check the
DefaultSettings.php
in theincludes
folder for the available and preset password encryption types. - Add
$wgPasswordDefault = ;
with the parameter to theLocalSettings.php
in case you want to change the encryption- Example:
$wgPasswordDefault = 'B';
- Example:
- 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.
- Check the MySQL-database whether the new format has been applied to the fields.
- Example:
Select user_password from wikidbname.user where user_password like ':B:%';
- Example: