How much do you know about PHP?
You'll need to find the login script(s) that mybb uses.
I've never used mybb .. I'm not sure how they organize their scripts.
I googled: mybb login integration
I found this:
That might be a good place to start.