phpBB3 user authentication with ColdFusion

I needed to quickly authenticate some phpBB3 users in a Flex application, and figured that it’d be no problem. Boy, was I wrong. phpBB does some neat dynamic password hashing trick that, to someone with no php experience like myself, looked to be too complex to emulate in CF.

After some searching, I found this post with tips on how to do it with CFEXECUTE. Unfortunately, I couldn’t quite get that to work, but I ended up rolling my own, with the help of some guys in #flex.

Download the sample code here.

remote_login.php and assoc_array2xml.php go in the root of your phpbb3 install.

Hope this saves a bunch of people a lot of time.

Comments