Hi,
I forgot the admin password, which I changed some days ago,.
Is there any option to recover it?
Thanks,
João
Hi,
I forgot the admin password, which I changed some days ago,.
Is there any option to recover it?
Thanks,
João
Hi João,
You cannot recover a password because it is not stored. But if you have access to the list of users, you can set a new password for any user including admin.
Thanks Konstantin,
Meaning that I should change the the PASSWORD Field in SEC_USER, right?
Thanks again,
João
If you don’t have access to the application UI but can edit the database, you can set admin’s password hash by updating SEC_USER.PASSWORD field.
So if your admin user has ID = ‘60885987-1b61-4247-94c7-dff348347f93’ (which is the default), then set PASSWORD to ‘cc2229d1b8a052423d9e1c9ef0113b850086586a’ and you will be able to log in with admin/admin credentials.
It worked, thanks
Update: if a project was bootstrapped on CUBA 7 (PASSWORD_ENCRYPTION=‘bcrypt’) use the following hash
$2a$10$vQx8b8B7jzZ0rQmtuK4YDOKp7nkmUCFjPx6DMT.voPtetNHFOsaOu
p.s. don’t forget to change admin password after recovery