Aleksi Häkli
2e2dbfad60
Update requirements
2019-07-09 15:07:27 +02:00
Aleksi Häkli
eedf528767
Update docs
...
Add new management commands and reorder sections logically.
2019-07-09 15:07:27 +02:00
Hasan Ramezani
0f3b3527be
Remove unused imports.
2019-07-09 14:50:09 +02:00
Aleksi Häkli
0a708ae3ea
Rename logs reset command
2019-07-09 12:55:28 +02:00
Aleksi Häkli
4113fc57d9
Handler import and module loading errors in checks
2019-07-09 12:54:55 +02:00
tlebrize
1253d6aeaa
added delete_access_logs management commands as well as tests for it #455
2019-07-09 12:12:54 +02:00
Adam Johnson
fa83253056
Don't trigger axes.W003 for subclasses of AxesBackend
...
The [usage documentation](https://django-axes.readthedocs.io/en/latest/3_usage.html ) advises to create subclass of `AxesBackend` to ignore the lack of `request` if necessary. I've done this in a project using `django-oauth-toolkit`, which doesn't pass `request` (though it should as per [this PR](https://github.com/jazzband/django-oauth-toolkit/pull/643 )).
This meant that the axes.W003 check was being triggered, so I've fixed it to check for subclasses of `AxesBackend` as well as the class itself.
2019-07-09 12:10:26 +02:00
Hasan Ramezani
6f2048f7ca
Added AXES_ONLY_ADMIN_SITE flag.
2019-07-09 08:12:33 +02:00
Aleksi Häkli
9fa0e7f215
Version 5.0.7
2019-06-14 17:22:44 +03:00
Aleksi Häkli
9c7c5c175a
Add documentation for updated AXES_FAILURE_LIMIT
2019-06-14 17:21:24 +03:00
Aleksi Häkli
4efbace713
Merge #452 into django-axes master
...
Fixes #451
Fixes #450 merge conflicts
2019-06-14 17:08:07 +03:00
Bo Bayles
9a043a23d8
Add str import also
2019-06-14 16:48:17 +03:00
Bo Bayles
dbc0c13029
Allow callable failure limit
2019-06-14 16:48:17 +03:00
Morgan Zolob
71708eff5a
Stop showing lockout message when lockout is disabled
2019-06-13 16:29:26 -07:00
pyup-bot
0ba52cdcc1
Update pytest from 4.6.1 to 4.6.2
2019-06-10 22:33:52 +03:00
Aleksi Häkli
7aae8e1ece
Add Django 2.2 to tox configuration
2019-06-05 21:40:42 +03:00
pyup-bot
0cd9c10dd5
Update pytest-django from 3.4.8 to 3.5.0
2019-06-05 21:27:38 +03:00
pyup-bot
02f0b65af3
Update pytest from 4.6.0 to 4.6.1
2019-06-05 21:27:38 +03:00
Aleksi Häkli
5107e8df37
Improve check for deprecated flags
...
Checking with getattr(object, name, [default]) provides
false positivies for flags that have their value set to None.
Checking with try: getattr(object, name) always produces
correct check values if a flag is defined in project settings.
Default values for flags are defined in the Axes default settings
so this should not alter any existing behaviour.
2019-06-02 13:41:29 +03:00
Aleksi Häkli
dfcc63b2cd
Improve documentation
...
Improve language for easier readability
Add missing Axes.W004 check code to docs
Update flow image with better diagram language
2019-06-02 13:23:52 +03:00
Aleksi Häkli
e93e0d3f89
Update pytest from 4.5.0 to 4.6.0
2019-06-02 13:08:07 +03:00
Aleksi Häkli
9caaf48b81
Update Django Allauth example
...
Use example from jazzband/django-oauth-toolkit#712
for reference with props to @hcNick for debugging
2019-05-30 17:44:08 +03:00
Aleksi Häkli
17e2d34b68
Update docs for Python 3 syntax
2019-05-30 17:29:45 +03:00
Aleksi Häkli
291ccdf233
Further update login flow diagram
2019-05-28 16:53:56 +03:00
Aleksi Häkli
77bac90c91
Update login flow diagram
2019-05-28 16:45:54 +03:00
Aleksi Häkli
1e796caa31
Improve architecture documentation
2019-05-26 21:30:08 +03:00
Aleksi Häkli
5f08037f78
Tune documentation titles
2019-05-26 17:42:52 +03:00
Aleksi Häkli
572addc84a
Add authentication flow diagram
2019-05-26 17:41:27 +03:00
Aleksi Häkli
67098c4669
Fix configuration list
2019-05-26 17:34:12 +03:00
Aleksi Häkli
5ab820db6a
Update architecture docs for exception handling
...
Version 5.0.5 migrated from exceptions to request flagging
which alters the internal behaviour slightly.
2019-05-25 21:12:50 +03:00
Aleksi Häkli
4b7650d37d
Improve middleware documentation
2019-05-25 21:04:47 +03:00
Aleksi Häkli
7340f2c408
Use correct rST code formatting in changelog
2019-05-25 21:04:41 +03:00
Aleksi Häkli
ccb14818b8
Update tox from 3.11.1 to 3.12.1
2019-05-25 20:45:21 +03:00
Aleksi Häkli
1842826b7a
Version 5.0.6
2019-05-25 20:45:21 +03:00
Aleksi Häkli
47ae68b0c0
Deprecate AXES_DISABLE_SUCCESS_ACCESS_LOG flag
...
Fixes #446
2019-05-25 20:45:21 +03:00
Aleksi Häkli
f028c7d2be
Clean up docs on configuration flags
...
Use separate line for default value for readability
2019-05-25 20:45:21 +03:00
Aleksi Häkli
d0b21d3803
Use term warning instead of error in check module code
2019-05-25 20:45:21 +03:00
pyup-bot
41c4eda047
Update tox from 3.10.0 to 3.11.1
2019-05-20 20:21:18 +03:00
Aleksi Häkli
bfccbf0587
Fix typo in docs
2019-05-19 21:23:24 +03:00
Aleksi Häkli
26cc41b689
Version 5.0.5
2019-05-19 18:32:40 +03:00
Aleksi Häkli
a151b9c8e2
Add tests for AXES_ENABLED flag
2019-05-19 18:32:40 +03:00
Aleksi Häkli
3a98c92949
Improve changelog ordering
2019-05-19 18:32:40 +03:00
Aleksi Häkli
8c2ae49f9a
Add compatibility table
2019-05-19 18:32:40 +03:00
Aleksi Häkli
079263e181
Add Django OAuth Toolkit integration example
2019-05-19 18:32:40 +03:00
Aleksi Häkli
25e7d5cfd3
Fix note block syntax in docs
2019-05-19 18:32:40 +03:00
Aleksi Häkli
2e984f9fdd
Fix DRF integration links
2019-05-19 18:32:40 +03:00
Aleksi Häkli
1fa76eb526
Improve usage documentation readability
2019-05-19 18:32:40 +03:00
Aleksi Häkli
465fe4529d
Include documentation notes
2019-05-19 18:32:40 +03:00
Aleksi Häkli
f9e850fcbd
Add instructions on silencing warnings from checks
...
Fixes #430
2019-05-19 18:32:40 +03:00
Aleksi Häkli
9517e252e0
Deprecate the old version 4.x AxesModelBackend class
...
Fixes #430
2019-05-19 18:32:40 +03:00