<?php

function snippet_xlogin($snippetController)
{
	if ($snippetController->isOutputPrevented()) {
		return;
	}

	if ($_REQUEST['doLogin'] && utls::isAjaxRequest()) {
		global $currentUser;
		$currentUser->webAJAXAuthorize();
		$snippetController->isOutputPrevented(true);
	}
}

?>