R
R
Radarchik2017-11-15 00:35:16
symfony
Radarchik, 2017-11-15 00:35:16

How to create a second (general) registration form for FOSUserBundle and HWIOAuthBundle?

I need to create a form that would go to after the registration form (login, email, password) FOSUserBundle and after authorization in the social. networks for HWIOAuthBundle.
And after passing this form (first name, last name, and other fields) for the User->profile entity, the user was created in the database and for FOSUserBundle, if registration was through it, an email confirmation email was sent.
Symfony 3, FOSUserBundle and HWIOAuthBundle latest

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Kuznetsov, 2017-11-15
@DarkRaven

Does your site allow both login via HWIOAuthBundle and regular registration via FOSUserBundle ?
Just as I understand it, HWIOAuthBundle integrates with FOSUserBundle ( https://github.com/hwi/HWIOAuthBundle/blob/master/... ) ,
and, in general, you can already twist twirl there.
I myself did not work with him, but I would dig into the direction of events. FOS, if my memory serves me, just relies on events, that's where I would go to look.

D
Denis, 2017-11-16
@prototype_denis

Radarchik , You need to add your RegistrationFormHandler to the HWI in which you will manage the registration form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question