简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM