What I did was copy the files, all of them from the old site to the new one, both sites on same server.
Then I changed the domain url on config.php
I also cleared the cache with php flarum cache:clear
The issue
The site displays perfectly well on the new domain but I can't login: "Your login details were incorrect"
If I do recover password: "Oops! Something went wrong. Please reload the page and try again."
These credentials work fine if i access trough the old domain, so basically i moved the files but since the database is already there i kept the same db name, user and pass. There's no point moving it.
What am i missing here?