0
votes

I'm using Symfony 3.3 and FOSUserBundle 2.0 and have overridden RegistrationControler to use my own User specification, but nothing different on the registration process.

When I set true to confirmation enabled no email is sent but working on reset password!

Here is my config.yml:

# FOSUserBundle
fos_user:
    db_driver: orm # other valid values are 'mongodb' and 'couchdb'
    firewall_name: main
    user_class: AppBundle\Entity\User
    from_email:
        address: "%mailer_user%"
        sender_name: "%mailer_user%"
    registration:
            form:
                type: AppBundle\Form\RegistrationType
            confirmation:
                enabled: true
    profile:
            form:
                type: AppBundle\Form\ProfileType

Not sure what is happening, can someone help?

1

1 Answers

0
votes

in yml files, tabs are not allowed, you need to use spaces only. And i'm sure you indent your "form" line too much.

registration:
    form:
        type: AppBundle\Form\RegistrationType
    confirmation:
        enabled: true
profile:
    form:
        type: AppBundle\Form\ProfileType