Sunday, November 20, 2016

Re: How to hook into the admin site to count login attempts with REST API / proxy?

Hi
you still can use Django axes as described in Django axes  documentation:

django-axes requires a supported Django version. The application is intended to work around the Django admin and the regular django.contrib.auth login-powered pages.

Also you can manually register urls for Django axes
http://django-axes.readthedocs.io/en/latest/issues.html#not-being-locked-out-after-failed-attempts
add watch_login to your admin url

On Friday, November 4, 2016 at 8:16:20 PM UTC+3:30, Daniel Grace wrote:
Hello, I have a REST API which is not publicly accessible as it is behind a proxy.  However the admin site is publicly available through an NGINX server.  The REST API already has functionality to count failed login attempts and I would like to duplicate that functionality on the admin login page.  How do I hook into the admin login page and add the appropriate code?  Can I still use Django Axes or should I create my own login form as a replacement?
Thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1d87fca9-1d1d-4a6f-ba10-30c47152917b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment