The admin account is stored in the table
users of the Foreman database, so you could update the password hash there. However, assuming you have root access to the server itself, there is a simpler way. Run the following command with root privileges to reset the admin account:
The new credentials are displayed in the console. Make sure to note them down.