I haven't looked at the PHPBB code for a while (back in the 2 branch) but there is a file that controls logins.
Write a wrapper for the login function in phpbb3 and pass the username and password to both your site script and phpbb's script.
Though I wouldn't touch PHPBB's code with a 10-foot pole. I can't even understand it most of the time.