Change XenForo Admin Password

Change XenForo Admin Password

Change XenForo Admin Password

Forgot your administrator password and cannot access the panel? Do not worry :)


If you forget your administrator password in XenForo forums or you cannot get a password reset by e-mail, you can create a new password with a single action.


All you have to do is go to PhpMyAdmin and run the following code as a query.


UPDATE xf_user_authenticate
SET data = BINARY
CONCAT(
CONCAT(
CONCAT('a:3:{s:4:"hash";s:40:"', SHA1(CONCAT(SHA1('new_password'),SHA1('salt')))),CONCAT('";s:4:"salt";s:40:"', SHA1('salt'))
),'";s:8:"hashFunc";s:4:"sha1";}'
),scheme_class = 'XenForo_Authentication_Core'
WHERE user_id = 1;


When you enter the password you will create in the new_password field in the code, you can now log in with that password.