Cannot login in Nextcloud — password marked as wrong even if right

I’m just skimming over this post, but I may have a solution.

My problem: I changed the password of a user to make sure I had the correct one. She still couldn’t log in. It never worked.

My solution: I had to use the yunohost command line to change the password and then it did work. I think it is
sudo yunohost user password <username>