Can't Login after restore to backup

Hi,

I restored my server to a previous date and am now trying to recover my SuiteCRM through a backup I had made. I extracted all the files and it seemed to work. Then I changed my DB password, the site stopped working, I changed it inside the config and now the site is back up, however I can no longer login. I tried changing passwords for users through the db, still can’t login. Any ideas what might have caused this and how to fix?

Update: found the problem, I had updated the db password in the config file but not in the /var/www/html/suitecrm/.env.local file, which still had the old password. Once I changed that it worked.