FOSUserBundle and remember me

前端 未结 4 1152
伪装坚强ぢ
伪装坚强ぢ 2021-02-06 00:43

I\'m using a FOSUserBundle for authentication in Symfony2. Everything works fine except \"remember me\". My security.yml looks like this:

security:
providers:
           


        
4条回答
  •  暖寄归人
    2021-02-06 01:33

    As "Adrian C" said, but with a little change which worked for me.

    instead "key" i used "secret"

     firewalls:
         main:
             ...
             remember_me:
                 secret:      "%secret%"
                 lifetime: 2592000
                 path:     /
                 domain:   ~
                 user_provider: fos_userbundle
    

提交回复
热议问题