Answer the question
In order to leave comments, you need to log in
Why is there no message from the registration form?
there is a NEW_USER event and a template is attached to it
не работает из-за этого ,как поправить?
не работает из-за редиректа как я понял
событие из init.php
AddEventHandler("main", "OnAfterUserAuthorize", 'openOnAfterUserAuthorize');
function openOnAfterUserAuthorize($arUser) {
if (stripos($_SERVER['REQUEST_URI'],'bitrix/admin') === false) {
LocalRedirect('/cabinet/index.php');
}
}
<?$APPLICATION->IncludeComponent(
"bitrix:main.register",
"",
Array(
"AUTH" => "Y",
"COMPONENT_TEMPLATE" => "main",
"COMPOSITE_FRAME_MODE" => "A",
"COMPOSITE_FRAME_TYPE" => "AUTO",
"REQUIRED_FIELDS" => array(),
"SET_TITLE" => "Y",
"SHOW_FIELDS" => array(0=>"EMAIL",1=>"NAME",2=>"LAST_NAME",3=>"PERSONAL_PHONE",),
"SUCCESS_PAGE" => "",
"USER_PROPERTY" => array(),
"USER_PROPERTY_NAME" => "",
"USE_BACKURL" => "Y"
)
);?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question