简体   繁体   English

FosUserBundle再次通过电子邮件确认注册

[英]FosUserBundle double Confirm registration by email

when I register on my website, I receive an email with the link of confirmation, ok. 当我在网站上注册时,会收到一封包含确认链接的电子邮件,确定。 When I clic on it, I have this error: 当我坚持的时候,我有这个错误:

The user with confirmation token "%s" does not exist

In the Db the user is ok, the lastLogin is set correctly, the confirmation_token is null, all is ok. 在Db中,用户正常,lastLogin设置正确,confirmation_token为null,一切正常。 it seems that the confirmationAction has already been launched 似乎确认动作已经启动

Do you know a reason that can launch the confirmationAction twice in a row? 您是否知道可以连续两次启动ConfirmationAction的原因?

(I think its the problem) (我认为这是问题所在)

The confirmation email may be disabled, try to force the enabled parameter to true ( doc ): 确认电子邮件可能已禁用,请尝试将enabled参数强制设置为true( doc ):

# app/config/config.yml
fos_user:
    # ...
    registration:
        confirmation:
            enabled: true 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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