Manual:ChangePassword.php/es

Versión de MediaWiki:
1.6
Category:MediaWiki code/es#ChangePassword.php

Details

El archivo "changePassword.php" puede usarse para cambiar la contraseña de un usuario en tu wiki. Las contraseñas deben tener, al menos, 10 caracteres.

Opciones

OptionDescriptionRequired?
--userThe username to operate onOptional
--useridThe user id to operate onOptional
--passwordThe password to useRequired

Uso

php maintenance/run.php changePassword [--user| --userid| --password ]
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.
Terminal

Usernames and passwords can have spaces, which will need to be protected from your shell (be it bash or cmd.exe; see Troubleshooting, below):

Terminal

Solución 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.

See also

Category:Maintenance scripts/es#ChangePassword.php Category:User maintenance scripts/es
Category:Maintenance scripts/es Category:MediaWiki code/es Category:User maintenance scripts/es