FOSUserBundle icon indicating copy to clipboard operation
FOSUserBundle copied to clipboard

REGISTRATION_COMPLETED event when registering via FOSFacebookBundle

Open raphaotten opened this issue 13 years ago • 2 comments

Hi,

shouldn't the REGISTRATION_COMPLETED event fire, when I register via FOSFacebookBundle when FOSUserBundle handles the user data?

Which event can I subscribe to as an alternative?

Thanks, Raphi

raphaotten avatar Mar 07 '13 16:03 raphaotten

This bundle does not provide any logic for FOSFacebookBundle. The logic is probably in your own code.

stof avatar Mar 08 '13 00:03 stof

Thanks! in FOSUserBundle one can use a custom user provider and therein in the loadUserByUsername method add the logic at the following position if (!empty($fbdata)) { if (empty($user)) { //... //add logic here } }

raphaotten avatar Mar 08 '13 10:03 raphaotten