django-axes/axes
Jack Sullivan fb205cc95c Test blocking configs, without the cache enabled.
Added 12 tests that verify lockouts for default, AXES_ONLY_USER_FAILURES,
and LOCK_OUT_BY_COMBINATION_USER_AND_IP settings, under four conditions
each: same/different user, and same/different IP address.

Truth Table:

  ¦ ¦ ¦ ¦ ¦ ¦ ¦User       IP           Action
  ¦ ¦ ¦ ¦ ¦ ¦|--------------------------------
IP Only      | Same       Same         Block
(Default)    | Same       Different    Allow
  ¦ ¦ ¦ ¦ ¦ ¦| Different  Same         Block
  ¦ ¦ ¦ ¦ ¦ ¦| Different  Different    Allow
  ¦ ¦ ¦ ¦ ¦ ¦|--------------------------------
User Only    | Same       Same         Block
  ¦ ¦ ¦ ¦ ¦ ¦| Same       Different    Block
  ¦ ¦ ¦ ¦ ¦ ¦| Different  Same         Allow
  ¦ ¦ ¦ ¦ ¦ ¦| Different  Different    Allow
  ¦ ¦ ¦ ¦ ¦ ¦|--------------------------------
User and IP  | Same       Same         Block
  ¦ ¦ ¦ ¦ ¦ ¦| Same       Different    Allow
  ¦ ¦ ¦ ¦ ¦ ¦| Different  Same         Allow
  ¦ ¦ ¦ ¦ ¦ ¦| Different  Different    Allow
2017-04-22 18:48:31 -07:00
..
management Reset lockouts for user 2016-10-24 12:24:32 +03:00
migrations BUGFIX: Missing migration 2016-05-12 15:14:23 -07:00
__init__.py Bump version 2016-11-24 08:55:38 -05:00
admin.py AccessAttempts and AccessLogs should neither be addable nor editable 2016-08-18 12:11:28 +02:00
apps.py ☀️ Migrated from Middleware and added support for django 1.10 2016-06-24 11:31:01 -05:00
decorators.py Add AXES: prefix to all log values for consistency 2017-04-06 19:52:17 +03:00
models.py 🔥 Clean weird logic when processing proxy ips 2016-07-20 11:38:37 -05:00
settings.py Fixed #221 -- Add AXES_NUM_PROXIES setting 2017-04-06 19:50:54 +03:00
signals.py Add signals for setting/deleting cache keys 2016-12-06 19:41:04 -05:00
test_settings.py ☀️ Migrated from Middleware and added support for django 1.10 2016-06-24 11:31:01 -05:00
test_settings_proxy.py Fix and add tests for IPv4 and IPv6 parsing 2016-11-21 21:33:55 +02:00
test_settings_proxy_custom_header.py Fix and add tests for IPv4 and IPv6 parsing 2016-11-21 21:33:55 +02:00
test_urls.py ☀️ Migrated from Middleware and added support for django 1.10 2016-06-24 11:31:01 -05:00
tests.py Test blocking configs, without the cache enabled. 2017-04-22 18:48:31 -07:00
utils.py Delete cache key in reset command line 2016-12-06 20:01:44 -05:00