Answer the question
In order to leave comments, you need to log in
How to make it so that after registration the user cannot log into his account until it is activated?
I know that it is possible to call the registration form and specify in its parameters that the login after registration is not carried out (this does not work, I don’t know why), but I don’t know how to then prohibit the user from logging in at the admin level.
<?$APPLICATION->IncludeComponent("bitrix:system.auth.registration","optoviyreg",Array(
"USER_PROPERTY_NAME" => "",
"SEF_MODE" => "Y",
"SHOW_FIELDS" => Array(),
"REQUIRED_FIELDS" => Array(),
"AUTH" => "N",
"USE_BACKURL" => "N",
"SUCCESS_PAGE" => "personal/",
"SET_TITLE" => "Y",
"USER_PROPERTY" => Array(),
"SEF_FOLDER" => "/",
"VARIABLE_ALIASES" => Array()
)
);?>
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