Setting up SMTP or checking database for resetting Nextcloud app password?

I’m still logged in on my OS thankfully, but I’m no longer able to login to the Nextcloud dashboard via browser.

The “Reset Password?” link does not send me an email to reset my password.

Is there a way to login via SSH and change the admin password for Nextcloud app? Or at least set-up an external SMTP server so I can follow the built-in process?