mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-24 23:23:44 +00:00
Merge pull request #99 from cericoda/master
Explain common issues where Axes fails silently
This commit is contained in:
commit
36a9d5d414
1 changed files with 15 additions and 0 deletions
15
README.rst
15
README.rst
|
|
@ -142,3 +142,18 @@ 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
|
||||
======
|
||||
|
||||
You may find that Axes is 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