Manual:$wgPasswordDefault/fr

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

Other languages:
English • ‎español • ‎français • ‎magyar • ‎polski • ‎português do Brasil • ‎日本語
Accès: $wgPasswordDefault
Default password type to use when hashing user passwords.
Introduit dans la version :1.24.0
Retiré dans la version :Encore utilisé
Valeurs autorisées :(string)
Valeur par défaut :'pbkdf2'

Details

Default password type to use when hashing user passwords.

Modifier les valeurs par défaut

  1. 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 and pbkdf2)
  2. 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';
    
  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.
    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 for pbkdf2-legacyA, pbkdf2-legacyB.
  4. 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:%';
    

See also