Kevin
Kevin

Reputation: 5082

FOSUserBundle Confirmation after registration

I have activated in the FOSUserBundle the email confirmation. It allows users to receive a link by mail after they registration.

registration:
    confirmation:
        enabled: true

But It's not really what I want. I just want to send a welcome mail to confirm their registration (with no confirmation link).

Is it possible to configurate that in the FOSUserBundle?

Upvotes: 3

Views: 3051

Answers (1)

chalasr
chalasr

Reputation: 13167

You can set a custom template for the email sent after registration:

confirmation:
    enabled:    true
    template:   YourUserBundle:Registration:email.txt.twig

Copy the default FOSUserBundle:Registration:email.txt.twig and remove the confirmation link.

But as the confirmation is set to true, your users will not be enabled by default.

So, if you want disable the whole confirmation feature, you can:

Hope this helps.

Upvotes: 2

Related Questions