The old one has a lot of unnecessary code and doesn't use the new login datahandler. I need to look whether the old one does more than verifying the password but what I'd do atm:
add an array with valid types (db_type => function_to_use)
check whether password & type are set, if yes return (use mybb login)
check whether we use a valid type, if no throw an error with link to the lost password page
call the function to verify the password
The functions would be check_phpbb($password) etc.
The old one has a lot of unnecessary code and doesn't use the new login datahandler. I need to look whether the old one does more than verifying the password but what I'd do atm:
The functions would be
check_phpbb($password)
etc.