I've been tasked with connecting a phpbb forum to an existing Magento database.
The way this will work is:
- New users register on the magento-based site and choose a forum username as well as a website username (could be the same). That way, they can use the same credentials in both places.
- Some registration logic needs to populate other database fields based on the user info.
- While authenticating an existing phpbb user, Magento's DB is used.
I used Magento's API for populating the table in 1, and plain MySQL queries/updates in 3. I'm stuck at 2 though.
For 2, the fields accessed by phpbb will be updated only by the phpbb forum (well, apart from the forum username), and never by the Magento site. Using Magento's API seems like an awfully tedious option and to my naive mind, unnecessary for my situation.
So, should I use the Magento API or plain MySQL inserts, and why?