mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Update README.rst
This commit is contained in:
parent
a2860d287f
commit
c1ecff5de6
1 changed files with 17 additions and 0 deletions
17
README.rst
17
README.rst
|
|
@ -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'}),
|
||||
...
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue