dttwois6098 2013-09-03 09:10
浏览 31
已采纳

Symfony2:使用FosUserBundle创建普通和非登录用户

What would be correct approach in order to create normal users and non-login users using FosUserBundle?

By non-login users I mean no username or email provided.

One way would be to generate some fake usernames/emails for the fake users, but doesn't seem ok.

The other way would be to force the username/email fields to be optional, but I'm not sure it will work and it won't break the login proccess.

  • 写回答

1条回答 默认 最新

  • doulupian8725 2013-09-03 09:34
    关注

    With FOSUserBundle users with enabled set to false or locked set to true are not able to login.

    Please read my answer here for the explanation of their different purposes.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?