Moved authentication logic from authenticate.inc.php to twofactor.lib.php