M
M
microf2017-03-23 08:33:01
1C-Bitrix
microf, 2017-03-23 08:33:01

How to send password to user after registration?

The site has two pages - registration/index and registration in the header. When registering in the header, they simply ask you to enter your mail and a password is sent to the mail. In the case of registration on the /registration page, the user himself can enter a password, but it turns out to be inoperative and the user does not receive an email with the fact that he has registered with the password itself. How to find in Bitrix what initiates sending mail to a registered user?
php_interface/init.phpis absent.
Those. I want all registration to be only on the user page and the user to receive a password by mail

<?$APPLICATION->IncludeComponent(
  "bitrix:main.register",
  "",
  Array(
    "AUTH" => "Y",
    "REQUIRED_FIELDS" => array("EMAIL","NAME","LAST_NAME","PHONE"),
    "SET_TITLE" => "Y",
    "SHOW_FIELDS" => array("EMAIL","NAME","LAST_NAME"),
    "SUCCESS_PAGE" => "",
    "USER_PROPERTY" => array("UF_NUMBER"),
    "USER_PROPERTY_NAME" => "Зарегистрируйтесь",
    "USE_BACKURL" => "N"
  )
);?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Mifle, 2017-03-23
@OlegMifle

By regular means - in any way. It is necessary to cling to the events of adding a new user (take the password from here) and the event of sending a letter (add a field with a password.).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question