Ken Cochrane
57a069bc61
Merge pull request #58 from mrbaboon/patch-1
...
Fix DataError on login
2016-05-27 14:12:32 -04:00
Ken Cochrane
1a105a6604
Merge pull request #59 from btoueg/patch-1
...
Fix for usernames with capital letters
2016-05-27 14:12:16 -04:00
Ken Cochrane
9692dce612
Merge pull request #57 from ericbuckley/_removing_urls_patterns_func
...
making urlpatterns a plain list
2016-05-27 14:12:02 -04:00
Benjamin Toueg
7fc366e4ca
Fix for usernames with capital letters
2016-05-13 16:37:22 +02:00
Alex White
9209f0579f
Fix DataError on login
...
A watched login failure causes a 500 saving a 256 character long username into the login attempts. Conditionally slice it to fit AccessAttempt
2016-05-11 14:07:50 -07:00
Eric Buckley
2913b5f38b
making urlpatterns a plain list
...
as of Django 1.8, creating urlpatterns with the
`django.conf.urls.patterns` function became deprecated and will be
removed in 1.10.
https://docs.djangoproject.com/en/1.8/ref/urls/#patterns
2016-04-19 21:09:26 -07:00
Ken Cochrane
972c670879
bump version to 0.4.2 and django version to 1.9.2 and 1.8.9
2016-02-01 14:53:38 -05:00
Ken Cochrane
f3702973de
Merge pull request #55 from vovanbo/django-1.9-support
...
Django 1.9 support
2016-02-01 14:49:56 -05:00
Vladimir Bolshakov
16e4e4d9c6
Exclude Python 3.3 and Django 1.9 from Travis matrix, because of Django 1.8 is the last version with Python 3.3 support.
...
https://docs.djangoproject.com/en/1.9/releases/1.9/#python-compatibility
2016-02-01 19:42:14 +03:00
Vladimir Bolshakov
4b8852204d
Django 1.9 is supported in installation requirements.
2016-02-01 19:10:28 +03:00
Vladimir Bolshakov
2ce4e16979
Use url method instead of patterns in test URLs setup.
2016-02-01 19:09:59 +03:00
Vladimir Bolshakov
23a690395c
Use render shortcut instead of render_to_response.
2016-02-01 19:09:28 +03:00
Vladimir Bolshakov
c3495605ea
Fix testing of failed login redirect to URL for Django 1.9.
...
Location header in redirect can be relative URL from Django 1.9.
2016-02-01 19:08:54 +03:00
Vladimir Bolshakov
948877c156
Fix formatting.
2016-02-01 19:07:16 +03:00
Vladimir Bolshakov
f4e0ddc032
assertEquals -> assertEqual
2016-02-01 19:06:38 +03:00
Vladimir Bolshakov
44c8746d8c
Templates settings as recommended from Django 1.8
2016-02-01 19:05:17 +03:00
Ken Cochrane
57ce00c4af
Merge pull request #54 from kencochrane/version_0.4.1
...
bump version to 0.4.1
2016-01-25 15:05:34 -05:00
Ken Cochrane
6a20dbf671
bump version to 0.4.1
2016-01-25 15:02:15 -05:00
Ken Cochrane
8c2d492131
Merge pull request #53 from kencochrane/update_travis_settings
...
updated travisCI settings
2016-01-25 14:59:38 -05:00
Ken Cochrane
cdb39f2413
updated travisCI settings
2016-01-25 13:59:14 -05:00
Ken Cochrane
adc429ab50
Merge pull request #52 from docker-hub/bc
...
Add helpers that do not assume how to retrieve `username`
2016-01-25 13:54:54 -05:00
bc Wong
831bb299f9
Always define the task to store login attempt
...
Adding function definitions based on config values makes testing hard.
The task function is always there, and we choose to call it depending on
config during runtime.
2016-01-24 17:28:20 -08:00
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
a03726ce5b
Merge pull request #51 from kencochrane/add_ip_blocking_feature
...
Added DEFENDER_DISABLE_IP_LOCKOUT so that you can disable IP lockouts if you want
2015-10-23 15:26:00 -04: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