Update README.rst

This commit is contained in:
cericoda 2014-09-30 12:35:01 +01:00
parent a2860d287f
commit c1ecff5de6

View file

@ -142,3 +142,20 @@ In your code, you can use ``from axes.utils import reset``.
* ``reset()`` will reset all lockouts and access records.
* ``reset(ip=ip)`` will clear lockout/records for ip
* ``reset(username=username)`` will clear lockout/records for username
Issues
======
* Why is Axes not capturing my failed login attempt?
It may be that you need to manually add watch_login to your login url.
For example, in your urls.py::
...
from django.contrib.auth.views import login, logout, password_change
from axes.decorators import watch_login
...
urlpatterns = patterns('',
(r'^login/$', watch_login(login), {'template_name': 'auth/login.html'}),
...