@pyc4 said:
I was thinking it is possible to generate hash from given password that is exactly the same as the hash written to database.
Only if you use the same salt, but you don't have the salt, so therein lies the problem 😄
Please read baris comment on GitHub.
https://github.com/NodeBB/nodebb-theme-persona/issues/54#issuecomment-90645268
@anodetobb have you read the linked GitHub thread?