Commit graph

309 commits

Author SHA1 Message Date
djmore4
6efe11128a Remove incorrect tests 2022-10-15 14:57:05 -04:00
djmore4
c4223ffb78 Fix test name and correct logic in data.py 2022-10-15 14:50:33 -04:00
djmore4
a882b5b1c3 I think we're finally done here 2022-10-15 14:34:30 -04:00
djmore4
ec13c71386 Whoops, they worked I guess. Let's see if they still do or we need more changes. Also improve coverage 2022-10-15 14:22:01 -04:00
djmore4
6a87753a4f Using assertEquals and an exception to test where the logic is going wrong 2022-10-15 13:53:12 -04:00
djmore4
e60be50f11 Update README further and make another adjustment to the tests 2022-10-12 17:33:33 -04:00
djmore4
614168c50d Refactor once again 2022-10-12 17:14:47 -04:00
djmore4
0759a9e3f3 Refactor once again 2022-10-12 17:06:46 -04:00
djmore4
9d8b1d4f55 another different approach 2022-10-12 16:01:22 -04:00
djmore4
13a7e9cd84 Hopefully this clears up the issues in the tests 2022-10-12 15:24:09 -04:00
djmore4
a7f4260941 Try some new things 2022-10-11 17:11:22 -04:00
djmore4
7242495458 Add importlib-metadata<5.0 to the requirements.txt 2022-10-11 15:12:12 -04:00
djmore4
b836b6bac9 Added changes and fixed small bug 2022-10-11 13:48:08 -04:00
djmore4
1a641793a1 Add new config options and update logic/tests to account for them 2022-10-11 12:33:05 -04:00
Hasan Ramezani
dffa7c3ba3 Confirm support for Django 4.1 2022-08-27 07:42:29 -04:00
Dashgin
7bb1359514 Change order of defender urls in documentation and example app 2022-06-19 18:47:55 -04:00
Aleksi Häkli
0a5011d450
Version 0.9.5 2022-06-06 13:17:35 +03:00
cbh
bb122f24b9 add username option to redis config 2022-06-06 13:15:55 +03:00
Jona Andersen
0b96c53245 Bump to 0.9.4 2022-05-01 16:09:52 -04:00
Jona Andersen
44ecbee250 Strip port number from IP address in X-Forwarded-For 2022-05-01 14:22:28 -04:00
hashlash
45c4575ccd Revert PyPy version pinpoint 2022-04-23 08:01:39 -04:00
Aleksi Häkli
b646e10e6c
Version 0.9.3 2022-04-18 15:52:02 +03:00
Aleksi Häkli
f812343491
Deprecate Python 3.6 support from package specifiers 2022-04-18 15:51:26 +03:00
Aleksi Häkli
8fa63e864f Version 0.9.2 2022-04-17 13:00:08 +03:00
Aleksi Häkli
bc161ff518
Deprecate Python 3.6 support 2022-04-15 19:28:16 +03:00
Aleksi Häkli
65f2c2fe3f
Deprecate Python 3.6 support 2022-04-15 19:25:00 +03:00
Aleksi Häkli
3c7ccc4e99
Deprecate Python 3.6 support 2022-04-15 19:23:05 +03:00
Aleksi Häkli
38fd8b6f16
Deprecate Python 3.6 support 2022-04-15 19:22:28 +03:00
Hasan Ramezani
95ccba251d Remove Python3.5 from setup classifiers 2022-04-13 17:46:42 +03:00
Hasan Ramezani
fdf37feb54 Drop Django 2.2 support 2022-04-13 17:46:42 +03:00
hashlash
6f806b046a Fix password quotation docs
- The `quote` function is inside `urllib.parse` module, not it's parent `urllib` module.
- Use `quote` instead of `quote_plus` since the parsing in `defender.connections` use `unquote` instead of `unquote_plus`.
2022-03-02 21:13:52 -05:00
hashlash
ef3e9869c2 Fix admin url example docs 2022-03-02 21:13:17 -05:00
Thomas J Bradley
41a68f2f71 Update README with password reset example
Show an example of how to adapt Django Defender for preventing brute-force submissions against the password-reset view.

- Logs submissions against the email address, instead of the default username, because email address is the only thing always available for the whole process.
- From: https://github.com/jazzband/django-defender/issues/204
2022-03-02 13:42:20 -05:00
hashlash
41d2f6aab7 Pinpoint PyPy version 2022-03-02 06:37:01 -05:00
hashlash
b90e545d20 Fix nested list in DEFENDER_LOCKOUT_TEMPLATE 2022-02-20 08:02:27 -05:00
Hasan Ramezani
43e6fcdf13 Confirm support for Python 3.10. 2021-12-16 16:40:44 -05:00
Hasan Ramezani
079d78bee3 Confirm support Django 4.0. 2021-12-16 16:40:44 -05:00
Hasan Ramezani
7c544d1cf8 Drop Django 3.1 support. 2021-12-16 16:40:44 -05:00
Williams Mendez
006ecf1dff Update exampleapp to use new routing/templates settings
The exampleapp is still running deprecated code.
2021-12-14 13:01:43 +01:00
Williams Mendez
c8a2586892 Define AppConfig.default_auto_field to match the initial migration
This patch removes a warning but also prevents creating migrations in projects
where DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField".
2021-12-13 21:00:46 +01:00
Hugo van Kemenade
78302f6b35 CI: Replace deprecated pypy3 with pypy-3.8
pypy3 is deprecated and is not available in newer images:
https://github.com/actions/setup-python/issues/244#issuecomment-925966022

Instead explicitly specify the version:
https://github.com/actions/setup-python#specifying-a-pypy-version

Committed via https://github.com/asottile/all-repos
2021-12-13 20:43:00 +01:00
Jazzband Bot
70c549dd2c
Jazzband: Synced file(s) with jazzband/.github (#193)
* Jazzband: Created local 'CODE_OF_CONDUCT.md' from remote 'CODE_OF_CONDUCT.md'

* Add code of conduct to package manifest template.

Co-authored-by: Jannis Leidel <jannis@leidel.info>
2021-10-23 00:25:31 +02:00
Hasan Ramezani
f358e06a53 Add pre-commit basic config. 2021-10-13 21:47:34 +03:30
Hasan Ramezani
55ab5c6961 Replace assertEquals with assertEqual. 2021-10-13 21:47:34 +03:30
Ryan Bales
e5edaf3b5d bugfix for IP backdoor to DEFENDER_LOCK_OUT_BY_IP_AND_USERNAME 2021-08-01 15:19:34 -04:00
Ken Cochrane
ab6c1a6358 fixed bad django 4.0 classifier 2021-07-18 09:58:34 -04:00
Ken Cochrane
5d625dd273 release version 0.9.1 2021-07-18 09:31:51 -04:00
Jonathan Willitts
5f5b34d50e Fix failing tests to work with Django (4.0) main dev branch 2021-04-29 06:50:36 -04:00
Ken Cochrane
d413e60847 released version 0.9.0 2021-04-25 19:36:10 -04:00
Hasan Ramezani
7eb24c5036 Add support for Django 3.2 2021-04-07 20:16:02 +04:30