Last logon

Questions, comments, discussions. Over time certain topics might be moved to their own category.
Post Reply
seth_gecko
Posts: 6
Joined: Wed Oct 17, 2018 5:31 am

Last logon

Post by seth_gecko » Sun Mar 03, 2019 8:00 am

Hi there.

Is there a chance to see the last logon of specified users? How can I do that?

User avatar
rosarior
Posts: 194
Joined: Tue Aug 21, 2018 3:28 am

Re: Last logon

Post by rosarior » Mon Mar 04, 2019 8:28 pm

Hi @seth_gecko,

Internally Django keeps track of this but we don't currently expose this. You can manually browse to the /admin URL and using Django's native admin app examine the last logon attribute of each user. Be aware that this is a low level admin page and changes here override business and model logic and will most likely leave the database in a inconsistent state. Use this for read only access.

A better solution would be to add an event to track not just the last login but each login. Since we are currently refactoring many parts of the project and have started adding events to users and groups, I think we could add this event.

Thanks for the question helps us with feedback regarding new additions like this one.

seth_gecko
Posts: 6
Joined: Wed Oct 17, 2018 5:31 am

Re: Last logon

Post by seth_gecko » Wed Mar 06, 2019 10:25 pm

Thanks Rosario, again.

I also took a look at the database and made a report from the auth_user table for all the users.

Post Reply