Commit graph

216 commits

Author SHA1 Message Date
Jorge Galvis
19affea1ba Merge branch 'master' into cache-attemps 2016-12-06 17:51:19 -05:00
Jorge Galvis
187195664b Fix tests after apply cache workflow 2016-12-06 16:46:16 -05:00
Camilo Nova
634c542dad Bump version 2016-11-24 08:55:38 -05:00
Camilo Nova
8fde5cf658 Merge pull request #207 from schinckel/only-check-on-post
Only look for lockable users on a POST.
2016-11-24 08:49:10 -05:00
Aleksi Häkli
41877cdecd Fix and add tests for IPv4 and IPv6 parsing
This patch does not fix IPv6 parsing with ports
2016-11-21 21:33:55 +02:00
Matthew Schinckel
90bf691e17 Fix failing test.
I think I'm just ensuring test coverage is not reduced now.
2016-11-17 16:57:12 +10:30
Matthew Schinckel
ddfd53d678 More tests. Still not entirely sure where I'm going with this yet. 2016-11-17 16:53:15 +10:30
Matthew Schinckel
68c7128885 Playing around with different is_user_lockable ideas. 2016-11-17 16:46:30 +10:30
Matthew Schinckel
c94e381bb7 Only look for lockable users on a POST.
Resolves #205.
2016-11-17 16:23:42 +10:30
Camilo Nova
ef3d527bee Bump version 2016-11-12 16:06:49 -05:00
Sam Kuehn
610f04120f fix python3 import 2016-11-07 09:02:13 -07:00
Sam Kuehn
a32f030c6a fix exception too broad 2016-11-04 15:27:19 -06:00
Sam Kuehn
7e6ac85d4e fix #201 error: illegal IP address string passed to inet_pton 2016-11-04 14:59:42 -06:00
Sam Kuehn
c86f234a3a add test for is_ipv6 2016-11-04 14:54:03 -06:00
Yi Ming Yung
b49e685603 Added settings for disabling success accesslogs and added complete disabling of accesslogs 2016-11-04 14:09:48 +01:00
Jannis Leidel
10208e7d70 Update changelog and pump version to 2.3.0 2016-11-04 12:02:26 +01:00
Jorge Galvis
14950ee83a WP: Cache failures in cache 2016-11-02 00:25:32 -05:00
Vladimir Nani
9c8ab657ba Reset lockouts for user 2016-10-24 12:24:32 +03:00
Eva Marques
54902242c1 Fix bug when using the optional IP parameter
When the IP parameter is used the first element of kwargs needs to be skipped because its value is the string 'ip'.
2016-09-27 17:55:51 +01:00
Camilo Nova
752783fe52 Bump version 2016-09-26 17:11:25 -05:00
Camilo Nova
790f451092 Merge pull request #193 from slurms/master
Fix #192 -- AXES_DISABLE_ACCESS_LOG doesn't work.
2016-09-23 11:56:34 -05:00
Nick Sandford
99807d0a1b Fix #192 -- AXES_DISABLE_ACCESS_LOG doesn't work. 2016-09-23 14:58:29 +01:00
lip77us
cad837aac9 Added AXES_ONLY_USER_FAILURES to support only looking at the user ID and not the IP address. I needed to add this for offices that use the same IP. One user was locking the whole office out of my application. Tests updated as well. 2016-09-22 12:35:51 -07:00
Yi Ming Yung
d457ca7e14 Made the signal race condition safe. 2016-09-06 13:37:25 +02:00
Camilo Nova
a5624646fb Merge pull request #188 from Dmitri-Sintsov/master
Removed ipaddress module dependency.
2016-08-22 10:55:45 -05:00
Dmitriy Sintsov
3cf1d03774 Use socket.inet_pton() to detect workaround for axes_accesslog.ip_address 'inet' field type insert error when running behind IIS as reverse proxy which adds port number to client address in X_FORWARDED_FOR HTTP header. 2016-08-22 11:53:05 +03:00
Dmitriy Sintsov
d772717314 Use backport of ipaddress module for Python 2.x: https://github.com/phihag/ipaddress 2016-08-20 14:02:28 +03:00
Dmitriy Sintsov
50b9d97281 Detect IPv6 addresses in decorators.get_ip() when running behind reverse proxy. 2016-08-20 11:44:20 +03:00
Camilo Nova
a3a3798e53 Fixes status code 2016-08-18 11:13:30 -05:00
Camilo Nova
f979f34bd9 Merge pull request #185 from ClairePhila/patch-1
AccessAttempts and AccessLogs should neither be addable nor editable
2016-08-18 10:57:07 -05:00
Camilo Nova
b9d5fae32a Fix for IIS used as reverse proxy. Closes #184 2016-08-18 10:55:27 -05:00
ClairePhila
c2210f6b3b AccessAttempts and AccessLogs should neither be addable nor editable 2016-08-18 12:11:28 +02:00
Dmitriy Sintsov
4d8caa3e03 Fix for IIS used as reverse proxy adding port number to 'HTTP_X_FORWARDED_FOR' header causing axes_accesslog.ip_address table insertion error. 2016-08-17 16:22:57 +03:00
Sven Hertle
65ed32f866 Unsuccessful logins are logged even if access log is disabled 2016-08-11 12:45:53 +02:00
Sven Hertle
6b1c5787dc fixed tests 2016-08-10 17:18:57 +02:00
Sven Hertle
2b86159a40 Added possibility to disable access log 2016-08-10 16:35:02 +02:00
Aaron Redalen
d5a5e46b2f Reset all attempts when ip not specified
When no ip address positional arguments are specified, reset all attempts, as with reset() and per documentation.
2016-08-05 09:40:12 -07:00
Aaron Redalen
1addfaecb6 Make ip positional argument optional 2016-08-05 09:00:11 -07:00
Camilo Nova
b20bad14f5 Removed unneeded test 2016-07-20 12:10:42 -05:00
Camilo Nova
5ece222de6 Remove unused method in test 2016-07-20 12:02:11 -05:00
Camilo Nova
0a98d2ac2b Release 2.2.0 2016-07-20 11:54:31 -05:00
Camilo Nova
0239e173e0 🔥 Clean weird logic when processing proxy ips 2016-07-20 11:38:37 -05:00
Camilo Nova
ea9a87b7de Release 2.1.0 2016-07-14 16:14:25 -05:00
Diederik van der Boor
8f011917dc Add default_app_config so you can just use axes in INSTALLED_APPS 2016-07-07 11:12:29 +02:00
Camilo Nova
5ba8aa4580 Release 2.0.0 2016-06-24 11:55:13 -05:00
Camilo Nova
730857a158 ☀️ Migrated from Middleware and added support for django 1.10 2016-06-24 11:31:01 -05:00
Camilo Nova
08f40bc13b 🔥 Cleaning 2016-06-24 09:42:18 -05:00
Camilo Nova
036b47706a ☀️ Improved the way we run tests 2016-06-24 09:16:29 -05:00
Camilo Nova
19f4e709e8 🔥 Do some cleaning 2016-06-24 08:41:24 -05:00
Camilo Nova
7a395011a4 Removed filter by ip address 2016-06-23 17:34:57 -05:00