Commit graph

543 commits

Author SHA1 Message Date
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
Mark Davidoff
c89a48f2aa switch get_ip calls to use newer non-deprecated get_client_ip method 2018-03-13 09:39:19 -07:00
Camilo Nova
69e58d0d3a
Merge pull request #310 from jazzband/development
Release 4.1.0
2018-02-19 08:38:05 -05:00
Aleksi Häkli
27d787fdd6
Bump version to 4.1.0 2018-02-18 13:59:07 +02:00
Aleksi Häkli
5c8d611d96 Update development docs to use tox as test runner 2018-02-18 13:58:06 +02:00
Aleksi Häkli
da18e80569 Clean up quotes styling 2018-02-18 13:58:06 +02:00
Aleksi Häkli
71a7a98529 Clean up apps setup errors and remove obsolete comments 2018-02-18 13:52:26 +02:00
Aleksi Häkli
0083b5027f Factor cache test to test for custom cache backend 2018-02-18 13:51:43 +02:00
Aleksi Häkli
e69a021b78 Remove redundant manage.py file 2018-02-18 13:51:10 +02:00
Camilo Nova
b83bdad71d
Merge pull request #309 from jazzband/merlin
Add AXES_CACHE setting
2018-02-17 14:36:57 -05:00
JWvDronkelaar
a8b53667ed Ready check now considers AXES_CACHE setting 2018-02-17 16:06:27 +02:00
JWvDronkelaar
0345245e32 Update docs to include AXES_CACHE setting 2018-02-17 16:06:27 +02: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
Aleksi Häkli
124e519ac9
Merge pull request #308 from pawl-bb/master
add axes_reset_user command to the docs
2018-02-16 08:51:03 +02:00
Paul Brown
596a70322c add axes_reset_user command to the docs 2018-02-15 16:33:39 -06:00
Camilo Nova
dea590b5ad
Merge pull request #303 from jazzband/cache
Add default cache backend checks to avoid incorrect axes behaviour
2018-02-10 09:08:57 -05:00
Aleksi Häkli
0afe300e41 Add default cache backend checks to avoid incorrect axes behaviour 2018-02-09 18:30:26 +02:00
Aleksi Häkli
a3177dc6ca
Merge pull request #301 from charleswhchan/charleswhchan-patch-1
Update conf.py to match latest release version
2018-02-03 13:34:12 +02:00
Charles Chan
6e9a91aa0c
Update conf.py to match latest release version
Update the version displayed in the title of http://django-axes.readthedocs.io/en/latest/installation.html
2018-02-01 21:53:07 -08:00
Aleksi Häkli
bc8672cb69
Bump version
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-01-19 17:40:29 +02:00
Camilo Nova
e2beace47e
Merge pull request #294 from grucha/docs_allauth
docs updated with instructions on allauth integration
2018-01-19 09:12:30 -05: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
Camilo Nova
95b1e79116
Merge pull request #293 from jazzband/doc
Refactor caching and related documentation
2018-01-19 09:10:59 -05:00
Aleksi Häkli
4c67d4187f
Update documentation
Clean up syntax for allauth examples
2018-01-15 13:06:53 +02:00
hsiao yi
2844d65092
Fix inet_pton can't be imported on windows 2018-01-15 12:54:58 +02:00
Sylwester Gruszka
268f7d8a3b docs instructions on allauth integration 2018-01-14 22:10:53 +01:00
Aleksi Häkli
faf62867e5
Add documentation on known LocMemCache problems
Signed-off-by: Aleksi Häkli <aleksi.hakli@vincit.fi>
2018-01-14 22: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