Jump to content

Manual: WrapOldPasswords.php

From mediawiki.org
This page is a translated version of the page Manual:WrapOldPasswords.php and the translation is 69% complete.
Versão MediaWiki:
1.24

Detalhes

O ficheiro wrapOldPasswords.php é um comando de manutenção que envolve todas as palavras-passe de um determinado tipo num tipo especificado de camada que envolve o tipo antigo.

If necessary, the old MD5 hashing can be restored by changing $wgPasswordDefault to 'B'.

This maintenance script can wrap all passwords in 'pbkdf2-legacyA' or 'pbkdf2-legacyB' if you do not want to wait for your users to log in.

Opções/Argumentos

Opção Descrição Necessário?
--type Type to convert to. This must be one of the layered types from $wgPasswordConfig , meaning either pbkdf2-legacyA or pbkdf2-legacyB. Required
--verbose Create verbose output during execution. Optional
--update Actually wrap passwords Optional


Utilização

php maintenance/run.php wrapOldPasswords --type PasswordConfigKey [ --verbose| --update ]
In MediaWiki version 1.43.6 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

Exemplo de execução

Terminal

Atualizar a palavra-passe

Terminal

Consultar também