Aleksi Häkli
c7e79aeaf2
Remove unused AccessAttempt.trusted flag
...
Fixes #344
2018-12-25 18:55:15 +01:00
Aleksi Häkli
7c3e21166e
Backwards compatibility fixes for credentials
...
Revert some of the PR changes to tests to make sure that all of the
old format function invocations work with the old and new tests.
Implement small enchancements to documentation and credentials resolving
for usability and flexibility with custom authentication backends.
Update documentation to indicate that backwards compatibility
is supported as well as the new format credentials invocations.
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-12-23 02:58:53 +02:00
Benedikt Bauer
2e9754914b
Use get_client_username instead of manual username lookup for cache key
2018-12-19 16:33:32 +01:00
Benedikt Bauer
306dd3c596
Use credentials whenever possible in favor of request.POST
2018-12-19 15:05:09 +01:00
Aleksi Häkli
8204032102
Add Python 3.7 to supported versions
...
Add Django 2.1 to the test matrix
Fixes #371
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-12-10 19:48:46 +02:00
Arjen
ac4ab22183
Added setting to reset failed attempts on successful login.
2018-10-26 14:45:06 +02:00
jd
4684a1a04f
Add a setting to supply a callable that can return a correct username given a request object #318
2018-05-22 14:54:45 -07:00
Aleksi Häkli
f73ff57b6f
Merge pull request #332 from EvaSDK/unboundlocalerror-user-agent
...
Fix call to undefined variable ua in _get
2018-04-20 23:33:27 +03:00
Gilles Dartiguelongue
488a940c3e
Properly handle User-Agent when AXES_ONLY_USER_FAILURES is set
...
Fixes access to undefined variable in _query_user_attempts and
respects documentation of the settings.
2018-04-20 15:16:06 +02:00
Gilles Dartiguelongue
84b887902d
Simplify cooloff time type check
2018-04-20 13:55:27 +02:00
Aleksi Häkli
df8feb4f69
Backport unicode string literals for Python 2.7
...
Fixes #328
2018-04-18 15:21:09 +03:00
Aleksi Häkli
512452e580
Add proxy precendence and count configuration
...
Fixes #286
2018-04-13 13:48:08 +03:00
Mark Davidoff
c89a48f2aa
switch get_ip calls to use newer non-deprecated get_client_ip method
2018-03-13 09:39:19 -07:00
JWvDronkelaar
a88750c144
Added AXES_CACHE setting for specifying axes cache
...
DummyCache can be used to disable caching
2018-02-17 16:06:27 +02:00
Camilo Nova
da0c4b429a
Added django-ipware
2017-12-13 14:35:19 -05:00
Camilo Nova
d55af8e966
Improve tests and fix global lockout. Fixes #261
2017-11-17 18:12:30 -05:00
Camilo Nova
ba37442252
Added support for Django signals, big code refactor and improvements
2017-11-17 17:15:34 -05:00