Im developing a web app which uses cakePHP 3. I have the app working, and i need to add ejabberd 15.x chat to my app.
I have configured the jabber to use odbc mysql and users database table( the same users table that cakephp uses ).
Now, the problem, is, my web app can log in/register users just fine, using cakephp's bcrypt password hasher. However, because passwords are hashed, ejabberd cant log those users in because it uses plain text passwords.
I could disable password hashing in cakephp and make it work that way, but, i would rather prefer the extra security that hashing provides, and enable exact same bcrypt hashing on ejabberd side, so it could log in using hashes that cakephp generated.
Is there a way to make ejabberd and cakephp3 hash passwords exactly the same way ?.