bc Wong
f9047162d4
Add helpers that do not assume how to retrieve username
...
The `is_already_locked` method assumes how the username is stored in the
request. This patch adds helpers that don't to allow for more flexible
implementation.
2016-01-24 09:41:43 -08:00
Ken Cochrane
6b91730722
cleanup the boolean logic around is_already_locked()
2015-10-23 15:00:56 -04:00
Ken Cochrane
6e2ea2b94a
fix compatibility issues with python 2.6, and disable testing on django versions 1.6.x and 1.7.x on python 3.5
2015-10-22 13:37:41 -04:00
Ken Cochrane
cc45409078
fixed pep8 issues
2015-10-21 16:44:12 -04:00
Ken Cochrane
64c5684c12
Added so that you can disable IP lockouts if you want
2015-10-21 16:33:08 -04:00
Ken Cochrane
94b7bcfffd
Merge pull request #47 from nephridium/decode_redis_data
...
Make key_list read from redis Python 3 compatible
2015-06-29 09:28:49 -04:00
nephridium
64736040af
Remove obsolete comments
2015-06-29 18:42:09 +08:00
nephridium
a3207d582a
Add tests for utils get_blocked_ips() and get_blocked_usernames()
2015-06-29 18:33:33 +08:00
nephridium
67ebb8edff
Make key_list read from redis Python 3 compatible
...
Converts from bytes to string using .decode('utf-8')
2015-06-26 22:17:50 +08:00
Ken Cochrane
b21b53577f
Merge pull request #44 from kencochrane/bump-django-1.8
...
bumped the version to 0.3.2 and made it so it installs easier with dj…
2015-06-16 10:27:48 -04:00
Ken Cochrane
7a0d432fe6
update travis config
2015-06-16 09:01:22 -04:00
Ken Cochrane
b7ba33c549
bumped the version to 0.3.2 and made it so it installs easier with django 1.8
2015-06-16 08:41:40 -04:00
Ken Cochrane
5fb01aed3f
Merge pull request #40 from mrbaboon/UserAndIPLockout
...
User and ip lockout
2015-05-04 16:46:40 -04:00
mrbaboon
4757528936
Update README.md
2015-05-04 13:40:10 -07:00
Alex White
11cf1da579
Update readme to add DEFENDER_LOCK_OUT_BY_IP_AND_USERNAME documatation
...
Clean up inconsistent styles
2015-04-30 15:28:24 -07:00
Alex White
319027c1e6
Fix line length meet PEP8
2015-04-21 16:24:01 -07:00
Alex White
b583f6f54f
Add combined username & ip tests
2015-04-21 15:22:29 -07:00
Alex White
793720a189
Handle evaluating combined IP and username lockouts based on settings
2015-04-21 15:22:17 -07:00
Alex White
c8da36cadb
Add boolean to allow locking out by username & ip address combined
2015-04-21 15:21:29 -07:00
Ken Cochrane
a381060c13
fixed the management command name
2015-03-24 15:29:36 -04:00
Ken Cochrane
fdf70c4c0c
bumped to 0.3.1
2015-03-24 15:28:25 -04:00
Ken Cochrane
a99bcdfc63
renamed the file to the correct name
2015-03-24 15:27:57 -04:00
Ken Cochrane
76c554ee6e
Merge pull request #37 from kencochrane/add_management_command
...
Add management command
2015-03-24 14:21:14 -04:00
Ken Cochrane
fb095e4ca9
cleaned up some landscape.io warnings
2015-03-20 11:09:45 -04:00
Ken Cochrane
8ef0420b23
added management command
2015-03-20 10:10:07 -04:00
Ken Cochrane
47d6a71825
fixed issues #15 #35 and #36 , added way to clean up access attempt table, as well as an option to not login attempts. Also speed up django admin pages
2015-03-20 10:09:39 -04:00
Ken Cochrane
231db4a633
fixed issue with templates not getting added to pypi package
2015-03-03 09:44:07 -05:00
Ken Cochrane
fa556256e0
update readme
2015-02-26 12:43:15 -05:00
Ken Cochrane
83201c104f
bump the version to 0.2.1
2015-02-26 12:42:47 -05:00
Ken Cochrane
6e04cb4760
Merge pull request #34 from tclancy/master
...
Add dependency on mockredis
2015-02-26 12:40:55 -05:00
Tom Clancy
1d11fe27c7
Wrong library
2015-02-26 11:25:42 -05:00
Tom Clancy
d131424aa5
Add dependency on mockredis
2015-02-26 11:22:47 -05:00
Ken Cochrane
c45354dd18
Merge pull request #33 from kencochrane/32_fix
...
Added fix for issue #32 changed the way we handle HTTP headers
2015-02-25 13:54:00 -05:00
Ken Cochrane
1816365ed7
fixed missing package_data
2015-02-25 11:22:19 -05:00
Ken Cochrane
ea7a8cde06
bumped the django versions on travis, and added a fix to get_ip()
2015-02-25 10:03:05 -05:00
Ken Cochrane
fd4f58a20c
took marcus's advice and used the built in django validator
2015-02-24 22:02:06 -05:00
Ken Cochrane
2f6afbdb6e
added ipv6 addresses to the test, and updated the ipv6 regex to something that worked better
2015-02-24 21:52:10 -05:00
Ken Cochrane
9c50d8e833
added fixes for issue #32 , hopefully this closes the security hole that @mmetince found
2015-02-24 18:16:08 -05:00
Ken Cochrane
f95874d22d
Merge branch 'master' of github.com:kencochrane/django-defender
2015-02-24 15:31:13 -05:00
Ken Cochrane
8e6036d56b
updated setup.py to fix error
2015-02-24 15:31:01 -05:00
Ken Cochrane
a32584b5ee
Merge pull request #30 from HarryRybacki/patch-1
...
Fixed confusing sentence
2015-02-19 16:28:37 -05:00
Harry Rybacki
fcd9576663
Fixed confusing sentence
2015-02-19 16:15:38 -05:00
Ken Cochrane
f970e41aa3
Merge pull request #29 from kencochrane/empty_username_fix
...
uploaded to pypi
2015-02-15 12:59:49 -05:00
Ken Cochrane
a61ebab912
uploaded to pypi
2015-02-15 12:59:14 -05:00
Ken Cochrane
dacb37afb8
Merge pull request #28 from kencochrane/empty_username_fix
...
add a fix so that we don't block an empty IP or username
2015-02-02 08:20:53 -05:00
Ken Cochrane
88c388ec42
add a fix so that we don't block an empty IP or username
2015-02-01 10:17:10 -05:00
Ken Cochrane
8ee8f3cd7b
Merge pull request #27 from kencochrane/bug-fix-josh
...
fixing an issue @jlhawn found, we should only block if we are over the l...
2015-01-30 19:46:58 -05:00
Ken Cochrane
87945f97ee
fixing an issue @jlhawn found, we should only block if we are over the limit
2015-01-29 20:02:35 -05:00
Ken Cochrane
58daedcd05
Merge pull request #25 from kencochrane/new-admin
...
initial commit, adding admin pages to manage blocked users
2015-01-29 08:39:14 -05:00
Ken Cochrane
389ae2d91f
locked down the defender views
2015-01-29 08:22:29 -05:00