I need some customization to xenForo's login. Once the user has entered his credentials, a script would match two custom fields of his profile with two rows in a custom table within the xenForo database. If both match, user gets in. If not, user doesn't get in.
I have a PHP script which basically does this, I just don't know how can I insert it into xenForo's login. Where do I start?