How to recover the password of an admin user

I didn’t write it down and now I can’t log back into the admin user account I created during the chapter where Mosh had us create that user. Is there any way to recover it without affecting anything on my database instance?

Hi,

I have no proven idea myself.

I remember that Mosh asks us to create a use manually and set its role as Admin in the db.
Maybe you could create a new admin and go from there.

Now SO seems to provide pointers on what to do.
You would likely create a new temporary action in a controller to execute a code and set a new password.

Hope it helps.

Regards