010101 That is a common problem (I've also experied this problem). The only solution is use a plain password with the login
method and not the one hashed by PHP with the function password_hash
. This because Flarum checks the plain password and not the hash (I think it checks the password by hashing it with password_hash
, so if it hashes the password hash it obviously won't work). This is the solution I found without choosing another encryption method:
- Click Login on Flarum
- Check if user is logged in. If false, then login and when login successfull send a login request to Flarum with plain password. Otherwise, if user is already logged in, redirect to a page where user needs to enter the password to login correctly to Flarum.
I hope this answers your question.