Saturday, May 29, 2010

What would be the best way to implement a login audit?

I'm developing an intranet application where one of the requested
features is having a detailed log containing entries of IP, user and
timestamp every time someone has logged in successfully. Also as a
bonus feature I'd like to implement a log of failed login attempts.
What would be the cleanest approach to do this?
Wrap the login view in contrib.auth with my own?
Or write a custom auth backend?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment