From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgPasswordDefault and the translation is 33% complete.

Other languages:
English • ‎español • ‎日本語 • ‎polski • ‎português do Brasil
Access: $wgPasswordDefault
Default password type to use when hashing user passwords.
Wprowadzono w wersji: 1.24.0
Usunięto w wersji: nadal w użyciu
Dozwolone wartości: string
Domyślna wartość: pbkdf2

Inne ustawienia: Alfabetycznie | Według funkcji


Default password type to use when hashing user passwords.

How to use it

  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. Przykład: $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. Przykład: Select user_password from wikidbname.user where user_password like ':B:%';

You can execute wrapOldPasswords.phpManual:wrapOldPasswords.php to convert the hashing algorithm of all passwords without waiting for users to log in.

Zobacz też