oivoodoo / devise_masquerade

Extension for devise, enable login as functionality. Add link to the masquerade_path(resource) and use it.
MIT License
541 stars 46 forks source link

Proper way to log masquerade "login" and "logout" #127

Open glhcaml-fsl opened 1 year ago

glhcaml-fsl commented 1 year ago

Hello.

I'm trying to log when an Admin is logging in and out as a User. My approach was to use rails callbacks in show and back actions in the masquerades controller, but when admin masquerades for few seconds, there are no logs, what you guys think is the best approach for it?

glhcaml-fsl commented 1 year ago

ping @oivoodoo