© 2015 X2Engine Inc.
Difference between revisions of "Manually Resetting Passwords"
From X2Engine
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Support]] | [[Category:Support]] | ||
− | + | This is an alternate method for resetting passwords, in the event that using the native password reset feature does not work due to improper configuration. | |
− | # Log in as | + | |
− | # Go to the "Users" module by following the link in the | + | If an ordinary user has lost/forgotten their password: |
+ | # Log in to X2Engine as an administrator | ||
+ | # Go to the "Users" module by following the link in the top bar. | ||
# Click on the user, and then click "update" | # Click on the user, and then click "update" | ||
# Enter a new password into the ''Password'' field. | # Enter a new password into the ''Password'' field. | ||
− | If | + | If the web application's ''administrator's'' password has been lost, you will need: |
− | |||
* Direct access to the database using PHPMyAdmin or some other means | * Direct access to the database using PHPMyAdmin or some other means | ||
* (optionally) a software tool for generating MD5 hashes | * (optionally) a software tool for generating MD5 hashes | ||
Line 17: | Line 18: | ||
# Log into the database. | # Log into the database. | ||
# Set the "password" field in the users table to the new MD5 hash on the admin user, i.e. to set it to lowercase "password" for user "admin": <syntaxhighlight lang="mysql">UPDATE x2_users SET password='5f4dcc3b5aa765d61d8327deb882cf99' WHERE username='admin';</syntaxhighlight> | # Set the "password" field in the users table to the new MD5 hash on the admin user, i.e. to set it to lowercase "password" for user "admin": <syntaxhighlight lang="mysql">UPDATE x2_users SET password='5f4dcc3b5aa765d61d8327deb882cf99' WHERE username='admin';</syntaxhighlight> | ||
− | # If "password" was used as the password, log in immediately as the administrator and change the password to | + | # If "password" was used as the password, log in immediately as the administrator and change the password to something else. |
Latest revision as of 17:49, 10 June 2014
This is an alternate method for resetting passwords, in the event that using the native password reset feature does not work due to improper configuration.
If an ordinary user has lost/forgotten their password:
- Log in to X2Engine as an administrator
- Go to the "Users" module by following the link in the top bar.
- Click on the user, and then click "update"
- Enter a new password into the Password field.
If the web application's administrator's password has been lost, you will need:
- Direct access to the database using PHPMyAdmin or some other means
- (optionally) a software tool for generating MD5 hashes
To reset the password:
- Come up with a new secure password and make note of it.
- Generate an MD5 hash of the new password, if an MD5 tool is available. Otherwise, the string 5f4dcc3b5aa765d61d8327deb882cf99 can be used (it is the MD5 hash of "password" in all lower-case).
- Log into the database.
- Set the "password" field in the users table to the new MD5 hash on the admin user, i.e. to set it to lowercase "password" for user "admin":
UPDATE x2_users SET password='5f4dcc3b5aa765d61d8327deb882cf99' WHERE username='admin';
- If "password" was used as the password, log in immediately as the administrator and change the password to something else.