Manual:ChangePassword.php/pt-br
Appearance
Outdated translations are marked like this.
| Versão do MediaWiki: | ≥ 1.6 |
| Arquivo do MediaWiki: changePassword.php | |
|---|---|
| Localização: | maintenance/ |
| Código-fonte: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Classes: | ChangePassword |
Details
O arquivo changePassword.php pode ser usado para alterar a senha de um usuário em sua wiki. Senhas devem ter, no mínimo, 10 caracteres.
Opções/Argumentos
| Option | Description | Required? |
|---|---|---|
| --user | The username to operate on | Optional |
| --userid | The user id to operate on | Optional |
| --password | The password to use | Required |
Uso
php maintenance/run.php changePassword [--user| --userid| --password ]
No MediaWiki versão 1.43.6 e anteriores, você deve invocar os scripts de manutenção usando
php maintenance/scriptName.php em vez de php maintenance/run.php scriptName.Terminal
$ php maintenance/run.php changePassword --user Foo --password IamPassword Password set for Foo
Nomes de usuário e senhas podem ter espaços, que terão de ser protegidos de seu shell (seja ele bash ou cmd.exe; consulte Solução de problemas, abaixo):
Terminal
$ php maintenance/run.php changePassword --user "Foo Bar" --password "fierce sea ceasefire" Password set for Foo Bar
Solução de problemas
- If your MediaWiki installation uses a memory cache, such as APC, memcached or Redis, then the user object is cached. Thus after making SQL changes you must flush the cache before a user can log in with the new password.
- Windows has special challenges with parsing double-quoted strings, as when a username or password contains spaces in the second example above.
- Occasionally triple (
"""quoted string""") and quadruple sets of double quotes will solve your problems with Windows' command shell,cmd.exe. You may be happier, though, to try Cygwin and follow the Unix conventions for quoting strings, which require fewer quotation marks.
- Occasionally triple (