Xataface is able to use the PHPBB users table to authenticate against so that, you can allow your users to log into your Xataface application using the same credentials as they use to access your PHPBB message forum. Achieving this level of integration requires 2 simple steps:
Set up the _auth section of your conf.ini file to reference the PHPBB users table and the correct username and password columns.
Specify the correct encryption on the password column. This step will be different for different versions of PHPBB.
PHPBB 2
PHPBB version 2 and lower simply use MD5 encryption on the password column, which Xataface supports natively via the encryption directive of the fields.ini file. Therefore we can set up our Xataface application to authenticate against our PHPBB2 database (assuming that our PHPBB is set up in the same database as our Xataface app) by doing the following:
Set up the [_auth] section of the conf.ini file as follows:
Set up the user_password field to use md5 encryption in the tables/phpbb_users/fields.ini file
[user_password]
encryption=md5
That's it! Now you should be able to log into your Xataface application using the username/password from PHPBB.
PHPBB 3
PHPBB version 3 and higher uses a custom encryption function for the password column so it is a little more complicated (but not that much). Step one (the conf.ini file) is the same as for PHPBB version 2 listed above. The 2nd part, however, requires us to implement a custom serialization for the user_password field. So the steps are below:
Set up the [_auth] section of the conf.ini file as follows: