Aleksi Häkli
c7e79aeaf2
Remove unused AccessAttempt.trusted flag
...
Fixes #344
2018-12-25 18:55:15 +01:00
Aleksi Häkli
b28ece3dae
Merge pull request #388 from jazzband/development
...
Version 4.5.0
2018-12-25 18:11:36 +01:00
Aleksi Häkli
b18c666ec1
Version 4.5.0
...
Fixes #384
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-12-25 17:47:11 +01:00
Aleksi Häkli
87f4fa2ccc
Merge pull request #387 from jazzband/coveralls
...
Remove deprecated coveralls from dependancies
2018-12-23 18:32:01 +01:00
Aleksi Häkli
a186e0f679
Change broken coveralls to codecov
2018-12-23 17:01:08 +01:00
Aleksi Häkli
13c395d36c
Merge pull request #385 from jazzband/django21
...
Fix tests for Django 2.1
2018-12-23 16:43:54 +01:00
Aleksi Häkli
396d99ccc1
Fix tests for Django 2.1
...
Use HTML comparisons is assertContains instead of
normal text comparisons which can change with rendering.
Fixes #374
2018-12-23 15:52:21 +01:00
Aleksi Häkli
a6561604b5
Add .idea to .gitignore
2018-12-23 15:42:37 +01:00
Aleksi Häkli
8ab4ce228f
Add tests for faulty AXES_USERNAME_CALLABLEs
2018-12-23 04:21:57 +02:00
Aleksi Häkli
becc61818f
Add another test case for AXES_USERNAME_CALLABLE
...
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-12-23 04:02:17 +02:00
Aleksi Häkli
b8489e0860
Fix AxesModelBackend function signature compatibility
2018-12-23 03:46:44 +02:00
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
Aleksi Häkli
34f9322367
Merge pull request #377 from mastacheata/bugfix/358-credentials-in-favor-of-request
...
Bugfix #358 credentials in favor of request
2018-12-22 19:30:17 +01: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
efc02327f3
Enhance configuration docs with detailed credentials description
2018-12-20 16:47:29 +01:00
Aleksi Häkli
1c72cf431f
Merge pull request #378 from jazzband/travis
...
Run tests in parallel in Travis
2018-12-20 01:21:22 +01:00
Aleksi Häkli
6847f5316d
Run tests in parallel in Travis
...
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-12-20 00:58:22 +01:00
Mark Davidoff
a7758b2f4b
Merge pull request #379 from mastacheata/refactor/remove-trailing-space-in-usage-rst
...
Strip trailing spaces in usage.rst
2018-12-19 09:33:57 -08:00
Benedikt Bauer
af1ff981dd
Strip trailing spaces in usage.rst
2018-12-19 18:04:54 +01:00
Benedikt Bauer
a17c7f4706
Strip Whitespace changes from PR
2018-12-19 18:01:56 +01:00
Benedikt Bauer
2e9754914b
Use get_client_username instead of manual username lookup for cache key
2018-12-19 16:33:32 +01:00
Benedikt Bauer
b6abd9c08e
Documentation update to reflect changes to AXES_USERNAME_CALLABLE
...
AXES_USERNAME_CALLABLE now gets two parameters and
AXES_PASSWORD_FORM_FIELD applies to the credentials dictionary first and only uses the POST fields as a fallback anymore
2018-12-19 15:27:20 +01:00
Benedikt Bauer
306dd3c596
Use credentials whenever possible in favor of request.POST
2018-12-19 15:05:09 +01:00
Aleksi Häkli
365f972413
Merge pull request #372 from jazzband/versions
...
Update test matrix to include Python 3.7 and Django 2.1
2018-12-15 19:40:47 +02:00
Aleksi Häkli
8204032102
Add Python 3.7 to supported versions
...
Add Django 2.1 to the test matrix
Fixes #371
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-12-10 19:48:46 +02:00
Aleksi Häkli
06870b08a0
Improve documentation for AXES_IP_WHITELIST config
2018-12-09 16:01:56 +02:00
Aleksi Häkli
295eb62527
Release 4.4.3
...
Fixes #370
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-12-08 15:24:52 +02:00
Aleksi Häkli
deb32c92c5
Add translations to the distribution
...
Fixes #361
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-12-08 15:15:03 +02:00
Mark Davidoff
3899553ba2
Merge pull request #369 from arjenzijlstra/update-error-message-axesmodelbackend
...
Update message of parameter required exception in AxesModelBackend.
2018-11-06 11:40:35 -08:00
Arjen
14f3a306d7
Update message of parameter required exception in AxesModelBackend.
2018-11-06 18:44:12 +01:00
Aleksi Häkli
3ccc218b89
Merge pull request #366 from arjenzijlstra/feature-reset-on-success
...
Added functionality to reset failed attempts on successful login.
2018-10-31 18:35:29 +02:00
Mark Davidoff
db63fe022b
Merge pull request #368 from jazzband/442
...
4.4.2 Release
2018-10-31 09:08:33 -07:00
Mark Davidoff
376b6a8840
bump version
2018-10-31 09:07:44 -07:00
Mark Davidoff
8ffb63e9bb
Update Changelog as the other fix did not make it into 441
2018-10-31 09:05:26 -07:00
Arjen
49ba672e2b
Rewrote test_reset_on_succes to use a common function.
2018-10-31 09:16:50 +01:00
Arjen
4509c7aab7
Rewrote range statement.
2018-10-31 08:42:47 +01:00
Arjen
4a9e75eb5d
Removed absolete print statements.
2018-10-31 08:40:05 +01:00
Arjen
f67d4db8fb
Put count on its own line.
2018-10-31 08:38:54 +01:00
Mark Davidoff
ce62cd35fa
Merge pull request #365 from markddavidoff/add-missing-migrations
...
Bug: Add missing migrations
2018-10-29 10:16:56 -07:00
Arjen
ac4ab22183
Added setting to reset failed attempts on successful login.
2018-10-26 14:45:06 +02:00
Mark Davidoff
c67869cfd3
squeeze this into 4.4.1
2018-10-24 16:55:18 -07:00
Mark Davidoff
b453943f86
add a test to make sure we don't have any more missing migrations
2018-10-24 16:55:18 -07:00
Mark Davidoff
8da725bd18
add a manage.py to make making migrations easier
2018-10-24 16:55:17 -07:00
Mark Davidoff
7943def4e5
migration was not generated when verbose names were added for models.
2018-10-24 15:44:08 -07:00
Aleksi Häkli
734bba3379
Merge pull request #364 from jazzband/441-release
...
4.4.1 release
2018-10-24 09:52:57 +03:00
Mark Davidoff
b297ac6352
update changelog
2018-10-18 16:15:22 -07:00
Mark Davidoff
7f20104c3a
bump version
2018-10-18 16:07:44 -07:00
Camilo Nova
3171860795
Merge pull request #357 from jazzband/doc-drf-wording-change
...
Wording change as DRF made some changes
2018-09-29 09:04:47 -05:00
Camilo Nova
84737a392c
Merge pull request #359 from markddavidoff/use-request-in-login-failed
...
for consistency get username from request in log_user_login_failed
2018-09-29 09:04:16 -05:00
Mark Davidoff
cd4fee226a
for consistency use get_client_username in log_user_login_failed instead of credentials. IMHO we should be using credentials everywhere but since we're not, at least be consistent
2018-09-28 15:18:28 -07:00