PortugêsBR
Informação
Você pode usar esta query para redefinir a senha de um usuário. É especialmente útil se você esquecer sua senha de administrador.

Você precisa substituir a new-password e 1 (the user_id). Você não precisa alterar o salt, mas, se o fizer, as duas instâncias precisarão ser as mesmas.

Rich (BB code):
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 = 'XF:Core'
WHERE user_id = 1;

É feio e usa apenas SHA1, mas funciona. Se você é paranoico com relação à segurança, deve redefinir sua senha novamente no Admin CP quando recuperar o acesso. A redefinição da senha no CP do administrador usará uma classe de autenticação mais segura.


Inglês
Informação
You can use this query to reset a user's password. It is especially useful if you forget your admin password.

You need to replace new-password and 1 (the user_id). You don't have to change salt, but if you do then both instances need to be the same.

Rich (BB code):
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 = 'XF:Core'
WHERE user_id = 1;
It's ugly and only uses SHA1, but it works. If you are paranoid about security then you should reset your password again in the Admin CP once you regain access. Resetting the password in the Admin CP will use a more secure auth class.