Manual:$wgPasswordDefault
アクセス権: $wgPasswordDefault | |
---|---|
Default password type to use when hashing user passwords. |
|
導入されたバージョン: | 1.24.0 |
除去されたバージョン: | 使用中 |
許容される値: | (文字列) |
既定値: | 'pbkdf2' |
その他の設定: アルファベット順 | 機能順 |
詳細
Default password type to use when hashing user passwords.
既定値の変更
- Check the "DefaultSettings.php" file in the
../includes
directory for the available and preset password encryption types.
(As of MW 1.30:A
,B
,pbkdf2-legacyA
,pbkdf2-legacyB
,bcrypt
andpbkdf2
) - Add
$wgPasswordDefault
with the parameter to the "LocalSettings.php" file in case you want to change the encryption, e.g. to restore the old MD5 hashing:$wgPasswordDefault = 'B';
- 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.
Alternatively you can use the "wrapOldPasswords.php" maintenance script to convert the hashing algorithm of all passwords without waiting for users to log in. Note that this script only works forpbkdf2-legacyA
,pbkdf2-legacyB
. - Check the MySQL-database whether the new format has been applied to the fields.
Select user_password from wikidbname.user where user_password like ':B:%';