D
D
Daniil Galkin2019-03-18 10:34:32
1C-Bitrix
Daniil Galkin, 2019-03-18 10:34:32

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

1 answer(s)
V
Vadim, 2019-03-18
@DgalkinD

In init.php, write a handler that, after / before registration, removes activity from the account

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question