M
M
Maxim Grechushnikov2016-03-31 02:12:35
PHP
Maxim Grechushnikov, 2016-03-31 02:12:35

Bitrix: How to make it mandatory to indicate email?

The application requires a completed email address. It is used to identify the user in the functionality of one of the sections.
I need to register through a social network, if it does not return mail, force the user to indicate the mail and confirm it. Well, to check for uniqueness, of course.
The checkboxes in the settings of the main module are checked.
E-mail is a required field: x
Request confirmation of registration by E-mail: x
Check E-mail for uniqueness during registration: x
If you register via mail, then everything works correctly. Through social networks ignores mail, leaving it empty.
What should I do? I counted on such a banal and logical standard functionality out of the box.
Judging by the discussions on the forum, it seems that there is no such functionality (!) o_O
Has anyone solved such problems?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Grechushnikov, 2016-04-01
@maxyc_webber

made via uLogin

S
Sergey, 2016-03-31
@SirBataneg

You need to use an event handler for user registration, and if there is no email from the social network, then require it in the form.
like
that:
dev.1c-bitrix.ru/api_help/main/events/#user
specifically OnBeforeUserRegister and customize the authorization form.
Or as another option: if the user is successfully authorized, but no email is specified, require it in the section in which it is mandatory for you in terms of functionality.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question