Symfony2 Login and Security

前端 未结 2 1671
無奈伤痛
無奈伤痛 2021-01-01 02:39

Is there a way I can store when was the last time a user logged in?

I\'m using symfony2, and everything\'s working alright with the security configuration.

I

2条回答
  •  無奈伤痛
    2021-01-01 03:20

    A quite simple solution would be to implement FOSUserBundle in your application as each user entry in the database has (amongst other things) a "last_login" field.

提交回复
热议问题