[英]FOSUserBundle 2.0 no confirmation email after user registration
我使用的是Symfony 3.3和FOSUserBundle 2.0,並且重寫了RegistrationControler以使用我自己的用戶規范,但是在注冊過程中沒有什么不同。
當我將true設置為啟用確認時,不會發送任何電子郵件,但會使用重置密碼!
這是我的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
不知道發生了什么,有人可以幫忙嗎?
在yml文件中,不允許使用制表符,您只需要使用空格即可。 而且我敢肯定,您的“表格”行縮進得太多了。
registration:
form:
type: AppBundle\Form\RegistrationType
confirmation:
enabled: true
profile:
form:
type: AppBundle\Form\ProfileType
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.