Commit graph

570 commits

Author SHA1 Message Date
Camilo Nova
764381b5ec Bump version 2018-05-26 11:40:46 -05:00
Camilo Nova
e34f04b201
Merge pull request #343 from jaadus/modified_username
Optional callable in settings to clean username
2018-05-24 09:18:10 -05:00
jd
7f5bacab1b add documentation for AXES_USERNAME_CALLABLE 2018-05-24 00:38:04 -07: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
Camilo Nova
4c71679559
Merge pull request #335 from jazzband/release
Version 4.3.1
2018-04-21 15:10:04 -05:00
Aleksi Häkli
263d381f8c
Version 4.3.1
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-04-21 17:45:50 +03:00
Aleksi Häkli
96ab3f1a5b
Add missing comma to setup.py
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-04-21 17:42:02 +03:00
Aleksi Häkli
1879762e04
Use warning for custom authentication backend authentication failures
Fixes #311

Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-04-21 17:41:00 +03:00
Aleksi Häkli
2bf1c46c02
Merge pull request #334 from jazzband/linting
Add prospector code checking and linting to CI pipeline
2018-04-21 17:38:58 +03:00
Aleksi Häkli
f023a8652b
Use new-style class for Meta
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-04-21 17:25:52 +03:00
Aleksi Häkli
2ec35566c6
Run prospector strictly in tox tests
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-04-21 17:18:06 +03:00
Aleksi Häkli
3031a0f6f6
Clean up test arguments and add pylint ignores
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-04-21 17:15:15 +03:00
Aleksi Häkli
cae5dbebd3
Use assertEqual instead of assertEquals in tests
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-04-21 17:08:37 +03:00
Aleksi Häkli
df259d7e74
Clean up test for loops and ignore unused loop variables
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-04-21 17:08:27 +03:00
Aleksi Häkli
69c97d4cee
Ignore argument definitions and import reports for signal handlers and utilities
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-04-21 17:08:09 +03:00
Aleksi Häkli
100ccad735
Version 4.3.0
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-04-21 00:45:32 +03:00
Aleksi Häkli
e8261b1a7e
Merge pull request #333 from jazzband/cleanup
Linting setup with prospector and cleanup
2018-04-21 00:34:50 +03: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
b56a77c7e2 Fix admin site has_add_permission declarations 2018-04-21 00:33:44 +03:00
Aleksi Häkli
0191053f86 Use prospector with tox 2018-04-21 00:33:44 +03:00
Aleksi Häkli
6a07ca2dc7 Use lowercase package names 2018-04-21 00:33:44 +03:00
Aleksi Häkli
685b9f2ffc Order tox requirements alphabetically 2018-04-21 00:33:44 +03: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
Aleksi Häkli
38b8ec324d
Merge pull request #331 from EvaSDK/misc-lint-fixes
Misc lint fixes
2018-04-20 18:28:11 +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
089447a2e7
Leave logging to formatting as needed
Do not force it as it might be used programmatically down the line, see
Sentry/raven [1] or fluentd [2] for example.

[1] https://github.com/getsentry/raven-python
[2] https://github.com/fluent/fluent-logger-python
2018-04-20 14:08:57 +02:00
Gilles Dartiguelongue
bbe6937395
Do not use len to assert existance of attempts
It forces unnecessary evaluation of the length of attemps.
2018-04-20 13:58:48 +02:00
Gilles Dartiguelongue
84b887902d
Simplify cooloff time type check 2018-04-20 13:55:27 +02:00
Camilo Nova
e5d2f536a8
Merge pull request #330 from jazzband/release
Bump version to 4.2.1
2018-04-18 15:18:18 -05:00
Aleksi Häkli
ff2c1d9834
Bump version to 4.2.1
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-04-18 16:06:07 +03:00
Aleksi Häkli
e7a2f1f718
Merge pull request #329 from jazzband/unicode
Backport unicode string literals for Python 2.7
2018-04-18 15:59:18 +03:00
Aleksi Häkli
df8feb4f69
Backport unicode string literals for Python 2.7
Fixes #328
2018-04-18 15:21:09 +03:00
Camilo Nova
cae4ee7488
Merge pull request #327 from jazzband/release
Bump version to 4.2.0
2018-04-14 10:02:02 -05:00
Aleksi Häkli
8bfdf647cc
Bump version to 4.2.0
Fixes #326

Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-04-13 14:50:36 +03:00
Aleksi Häkli
e57ce27b82
Merge pull request #325 from jazzband/ipware
Add proxy and client IP configuration settings and documentation
2018-04-13 14:02:00 +03:00
Aleksi Häkli
512452e580
Add proxy precendence and count configuration
Fixes #286
2018-04-13 13:48:08 +03:00
Aleksi Häkli
521b6adb97 Fix configuration keys for COOLOFF_MESSAGE and PERMALOCK_MESSAGE 2018-04-11 22:04:07 +03:00
Aleksi Häkli
146c3b2b39 Add AxesModelBackend to test setup 2018-04-11 20:55:29 +03:00
Aleksi Häkli
d1f1f400b4
Improve project documentation
Add ipware documentation
2018-04-11 20:15:35 +03:00
Aleksi Häkli
d08aaa5602
Merge pull request #315 from markddavidoff/add-middleware
use an authentication backend to check if user is locked out.
2018-04-11 20:02:29 +03:00
Mark Davidoff
07a9adb8f9
Fix link 2018-04-09 16:34:55 -04:00
Camilo Nova
c0f636eac9
Merge pull request #320 from junquera/patch-1
Update usage.rst
2018-04-09 11:15:16 -05:00
Javier Junquera Sánchez
ef75697ff8
Update usage.rst
Without `axes_dispatch` decorator, it doesn't lock users.
2018-04-09 09:48:56 +02:00
Mark Davidoff
63e571fb38 updated docs 2018-04-07 11:50:16 -07:00
Mark Davidoff
c8acf69eab change ValueError to specific Exception 2018-04-07 11:41:42 -07:00
Mark Davidoff
d8cbb42620 add a check to make sure request is not None 2018-04-06 16:01:34 -07:00
Mark Davidoff
8580c404e3 add an authentication backend to check if user is locked out. 2018-04-06 16:01:23 -07:00
Camilo Nova
3a2fb80884
Merge pull request #314 from markddavidoff/upgrade_get_ip_func
switch get_ip calls to use newer non-deprecated get_client_ip method
2018-03-13 17:40:34 -05:00