On the page there is a call to the social services component, the user is registered only through them http://joxi.ru/a2X45M1SyW1yv2
called like this
<?$APPLICATION->IncludeComponent( "rosacamp:system.auth.form", "", Array( "COMPONENT_TEMPLATE" => ".default", "FORGOT_PASSWORD_URL" => "", "PROFILE_URL" => "", "REGISTER_URL" => "", "SHOW_ERRORS" => "N" ) );?>
after that, the popup opens, in which the user passes authorization through the social network.
in the init.php file I add an event handler
AddEventHandler("main", "OnAfterUserAuthorize", Array("AfterRegClass", "OnAfterUserAuthorizeHandler")); in which I redirect
Class AfterRegClass{ function OnAfterUserAuthorizeHandler($arFields){ header("Location:/registration/endreg.php"); } }
but the redirect occurs in this popap. I also need a popup to close and redirect