PUGX / PUGXMultiUserBundle

An extension for FOSUserBundle to handle users of different types. Compatible with Doctrine ORM.
163 stars 96 forks source link

Integrate the activation registration described in the FOSUserBundle cookbook #5

Closed jmorenoamor closed 11 years ago

jmorenoamor commented 11 years ago

I'm trying to add the registration with invitation code described in the FOSUserBundle documentation but the invitation code dos not get to the part where the user is created, the registration form keeps telling me it cannot be null.

Is it possible to apply the "cookbook" directly to PUGXMultiUserBundle?

Has anyone tried to do it?

Thanks and regards.

leopro commented 11 years ago

I never used the invitation code, but I see that you can create your own the registration form. So you have to create your form type and then add it to config

# Acme/app/Resources/config/config.yml
fos_user:
   [...]
    registration:
        form:
            type: acme_user_registration
            handler: pugx_user_registration_form_handler

but as I said I've never tried

jmorenoamor commented 11 years ago

Thanks for the tip, I will try to implement it