Commit graph

193 commits

Author SHA1 Message Date
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
Artur Mullakhmetov
dfe7d84907 Fix ISO8601 time duration format. 2016-06-20 17:40:17 +03:00
Camilo Nova
a87ffa6874 Merge pull request #158 from mullakhmetov/json-response-type
Added JSON response type.
2016-06-07 09:12:10 -05:00
Joeri Bekker
99fd05e68c Added AXES_NEVER_LOCKOUT_WHITELIST option to prevent certain IPs from being locked out. 2016-06-02 13:40:31 +02:00
Artur Mullakhmetov
5627d1c285 Merge remote-tracking branch 'upstream/master' into json-response-type
# Conflicts:
#	axes/decorators.py
2016-05-30 16:36:39 +03:00
Artur Mullakhmetov
1c303ceec5 Add json response and iso8601 tests. 2016-05-30 16:08:34 +03:00
Artur Mullakhmetov
06a97de5d9 Edit json response. Context now contains ISO 8601 formatted cooloff time. 2016-05-30 16:05:10 +03:00
Artur Mullakhmetov
7444c4e3b3 Add iso8601 translator. 2016-05-30 15:59:48 +03:00
Camilo Nova
142f49d919 Merge pull request #161 from yograterol/patch-1
Added app_label for RemovedInDjango19Warning
2016-05-26 08:56:17 -05:00
Yohan Graterol
677fa3986b Added app_label for RemovedInDjango19Warning 2016-05-23 08:02:33 -05:00
Radosław Luter
dfc2a50f2c use render shortcut for rendering LOCKOUT_TEMPLATE 2016-05-20 17:44:20 +02:00
Артур Муллахметов
2643de5e59 Add humanize COOLOFF_TIME output. Additional in HttpReponse case,
substitutive in JSON response case.
2016-05-13 11:50:17 +03:00
Артур Муллахметов
4e8f94d7c2 Add json response on ajax request. 2016-05-13 11:15:38 +03:00
Steve Meinel
8e8bfab789 BUGFIX: Missing migration 2016-05-12 15:14:23 -07:00
Артур Муллахметов
cef95f8bc3 Issue #155. Lockout response status code changed to 403. 2016-05-12 23:19:22 +03:00
Silas Barta
70af6ea206 Set IP public/private classifier to be compliant with RFC 1918. 2016-04-27 13:48:50 -07:00
Jonas Trappenberg
d10d1cfa7f Decorate auth_views.login only once 2016-04-21 17:53:53 -07:00
Serhiy Zahoriya
d193641bad Fixing #126, possibly breaking compatibility with Django<=1.7 2016-03-11 19:43:01 +02:00
Michael van de Waeter
a4ed01c22d Made migrations py3 compatible 2016-03-08 22:41:10 +01:00
Patrick Hagemeister
d7b2a18305 Fixes whitelist check when BEHIND_REVERSE_PROXY 2016-01-29 12:44:56 +01:00
Marco Schweighauser
3637a8038d Add db indexes to CommonAccess model 2015-12-17 13:50:29 -08:00
ibaguio
78099e5571 added initial migration files to support django 1.7 &up 2015-11-16 22:02:19 +08:00
Ann Paul
74f50d8211 Iterate over ip addresses only once 2015-10-23 08:56:32 -07:00
Camilo Nova
035dca0b44 Merge pull request #131 from jdunck/fast-path-unlockable
Immediately return from is_already_locked if the user is not lockable
2015-10-17 16:42:42 -05:00