Title
#fleet
Hello_There

Hello_There

05/11/2022, 6:21 PM
hi! I have a doubt, I didn't access fleet for a few days and now I forgot my password, a bad idea not to have saved it in the safe. and I still hadn't configured smtp to be able to use the "forgot password" option. Is there any way to update the password through the command line (CLI) or through the SQL database?
Michal Nicpon

Michal Nicpon

05/11/2022, 6:28 PM
The easiest way would probably be updating the password in the db. You can use the following query (making sure to change the id to your user)
update users set password = '$2a$12$OJ5/Qd106lwlM0caVupcDuWbDcrQxLSO2xyfZSJB8bFGGiw6uBNuS', salt = 'xFmPp2H2Z8cXRoKCtMoDfULHmfiWo104' where id = 1;
this would change the password to
admin123#
. After logging in, you should change the password to something else and save it somewhere
Hello_There

Hello_There

05/11/2022, 6:34 PM
I will try it now
6:39 PM
It works!!!
6:39 PM
6:40 PM
thanks !