I'm working on a project with ROR framework and the gem "Devise" for the authentication.
Actually i have 3 model of users :
- User
- Admin
- Company
I would like to know if there is a way to get the user's account activities with the time and ip (i got it with devise):
When the user login, logout, fail login, change password, unlock account etc ...
Shall i build a new model : security_notifications which is associated with User model, and override devise Controllers to create the notification after every actions ? Or there is a better method ?
Thanks,
Aucun commentaire:
Enregistrer un commentaire