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
41b532c882
Fix problem with Django Admin -> It always uses username as the username field
2018-12-20 16:48:10 +01:00
Benedikt Bauer
306dd3c596
Use credentials whenever possible in favor of request.POST
2018-12-19 15:05:09 +01: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
1013369ebe
Clean up module imports
2018-04-21 00:33:44 +03:00
Aleksi Häkli
a6d2b16294
Remove unnecessary cache import from utils
2018-04-21 00:33:44 +03:00
Aleksi Häkli
db13d45e29
Remove unnecessary else branches from conditionals
2018-04-21 00:33:44 +03: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
8580c404e3
add an authentication backend to check if user is locked out.
2018-04-06 16:01:23 -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
ef7c5d5e73
Merge pull request #296 from jazzband/windows
...
Fix inet_pton can't be imported on windows
2018-01-19 09:11:54 -05:00
hsiao yi
2844d65092
Fix inet_pton can't be imported on windows
2018-01-15 12:54:58 +02:00
Aleksi Häkli
44cb07814e
Refactor AccessAttempt reset utility
...
Remove cache key deletion because cache resets
are already done in the delete_cache_after_delete
signal handler after AccessAttempt object deletion
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-01-14 12:47:48 +02:00
Camilo Nova
da0c4b429a
Added django-ipware
2017-12-13 14:35:19 -05:00
Camilo Nova
04f9b43221
Fixes bad import
2017-11-21 16:59:42 -05:00
Camilo Nova
ba37442252
Added support for Django signals, big code refactor and improvements
2017-11-17 17:15:34 -05:00
Jorge Galvis
f277007e46
Delete cache key in reset command line
2016-12-06 20:01:44 -05:00
Camilo Nova
08f40bc13b
🔥 Cleaning
2016-06-24 09:42:18 -05:00
Artur Mullakhmetov
dfe7d84907
Fix ISO8601 time duration format.
2016-06-20 17:40:17 +03:00
Artur Mullakhmetov
7444c4e3b3
Add iso8601 translator.
2016-05-30 15:59:48 +03:00
Camilo Nova
cf1091d411
Improved axes_reset command. Fixes #52
2013-07-27 12:16:54 -05:00
Josh VanderLinden
bd88ac1e7c
Incorporating changes offered by kostrom in pull request #6 a flippin year ago...
2012-08-26 00:36:52 -06:00
Mike Blume
b1b0cb390e
lots of pep8 fixes
2011-04-12 21:05:32 +00:00
Josh VanderLinden
2c066c7080
Merging in changes from MichaelBlume, with some modifications of my own.
2010-10-01 17:41:38 -04:00
Mike Blume
aa411ddcd6
add reset command.
...
from axes.utils import reset
reset() will reset all lockouts and access records.
reset(ip) will clear lockout/records for ip
reset will print a message to std out if there is nothing to reset,
unless called with silent = True
2010-09-27 17:43:23 +00:00