Manual:Resetting passwords/es

Existen varias situaciones en las que un usuario puede necesitar restablecer su contraseña. Lo más habitual es que la gente olvide su contraseña, o quizá surja algún tipo de violación de la seguridad que pueda haber dado a conocer su contraseña. En la mayoría de las situaciones, podrán restablecer ellos mismos su contraseña usando la función de envío de nueva contraseña de Especial:Entrar.

En situaciones más complicadas, como cuando el usuario ha olvidado el nombre de su cuenta o no puede acceder a su cuenta de correo electrónico, pueden ser necesarias medidas adicionales por parte de un administrador.

Usar Especial:Entrar
Si conoces el nombre de usuario de una cuenta, puedes usar el enlace ¿Has olvidado tu contraseña? de la página Especial:Entrar. To use the feature, visit the Special:UserLogin page for the relevant wiki, fill in the Username field of the form and press the ”Email new password" button. A temporary password, along with instructions on how to reset the account's password, will be sent to the email address associated with the username.

Finding the username for a given email address
If you know the email address for a user, but not their username, query the  table of the MediaWiki database to find the associated username. For example, to find the username for user@example.com, run the following query:

Use the changePassword.php maintenance script
The maintenance script allows system administrators to change the password for an account. For complete instructions see. If you are already familiar with maintenance scripts, run the following command:

Cuidado: System administrators should not know the unencrypted password for user accounts. A user may use the same password over many different sites. If one of their accounts that uses the same password is compromised, then suspicion can be thrown on the administrator. It is better to use "Email new password" to force the user to reset the password for their own account.

Use Special:PasswordReset
Special:PasswordReset allows accounts with the 'passwordreset' permission to reset account passwords for the local installation of MediaWiki.

To use:


 * Type username you want to reset in box provided and click "Reset password"
 * An automatically generated password will be emailed to the user

For automatically inserting the username in links, use.

Direct database modification
To reset a password you can change the value of  field, in   table. However, it's generally far easier and safer to use "Email new password" or use the changePassword.php script.

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.

Para MediaWiki versión 1.13 y posterior
You should choose the salted or unsalted method depending on the value of  in.


 * MySQL unsalted:


 * MySQL salted (make sure both instances of "somesalt" are the same):


 * PostgreSQL unsalted:


 * PostgreSQL salted (make sure both instances of "somesalt" are the same):

For MediaWiki Version 1.12 and below
MySQL:

PostgreSQL:

Notas
Also restarting Apache and clearing your browser cache might help.

You can copy the known password from one account to another: (Tested on Mediawiki 1.15, MySQL)

SELECT user_id, user_name, user_password FROM user; +-+---+--+ +-+---+--+ +-+---+--+
 * user_id | user_name | user_password                               |
 * 1 | User1    | :B:1d8f41af:1ba8866d9c43d30b7bc037db03a067de |
 * 2 | User2    | :B:ee53710f:4291b056175513a5602d48eaeb79705c |

UPDATE user SET user_password = ':B:ee53710f:4291b056175513a5602d48eaeb79705c' WHERE user_id = 1;