我使用Symfony 3.3和FOSUserBundle 2.0并重写了RegistrationControler以使用我自己的用户规范,但注册过程没有任何不同。
当我设置为启用确认时,没有发送电子邮件但正在处理重置密码!
这是我的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
不确定发生了什么,有人可以帮忙吗?
答案 0 :(得分:0)
registration:
form:
type: AppBundle\Form\RegistrationType
confirmation:
enabled: true
profile:
form:
type: AppBundle\Form\ProfileType