Commit graph

35 commits

Author SHA1 Message Date
Aleksi Häkli
e24f0453bb
Remove reduntant AccessLog.trusted flag
All attempts that are logged are marked as trusted
and no other attempts are created in the code,
so having a flag that also uses a database index
is redundant and unnecessary.

Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2019-03-13 16:07:25 +02:00
Aleksi Häkli
b46e7cce01
Drop Python 3.5 support
Most of our users are already running on Python 3.6+
and dropping 3.5 and below in a future oriented release
allows us to focus on implementing more readable codebases.

Fixes #417

Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2019-03-09 21:49:45 +02:00
Aleksi Häkli
b120fc6fde
Remove redundant AccessAttempt.failures property
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2019-02-22 19:55:10 +02:00
Aleksi Häkli
1b1771d164
Rename CommonAccess to better name
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2019-02-12 23:11:18 +02:00
Aleksi Häkli
030810df79
Drop Python 2.7 and Python 3.4 support
Fixes #395

Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2019-02-07 17:28:26 +02:00
Aleksi Häkli
c7e79aeaf2 Remove unused AccessAttempt.trusted flag
Fixes #344
2018-12-25 18:55:15 +01:00
Aleksi Häkli
8204032102
Add Python 3.7 to supported versions
Add Django 2.1 to the test matrix

Fixes #371

Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-12-10 19:48:46 +02:00
Arjen
ac4ab22183
Added setting to reset failed attempts on successful login. 2018-10-26 14:45:06 +02:00
Andreas Donig
1f257b29c7 Add verbose names for the Model classes 2018-07-17 15:41:06 +02:00
Andreas Donig
276487895a Make verbose_name a positional argument 2018-07-17 15:20:45 +02:00
Andreas Donig
c6bf55c04d Change _ to be gettext_lazy 2018-07-17 15:14:17 +02:00
Andreas Donig
a4ace8c593 Fix a typo 2018-07-17 15:06:27 +02:00
Andreas Donig
47ea54b4aa Add a German translation 2018-07-17 15:04:33 +02:00
Aleksi Häkli
f023a8652b
Use new-style class for Meta
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-04-21 17:25:52 +03:00
Aleksi Häkli
df8feb4f69
Backport unicode string literals for Python 2.7
Fixes #328
2018-04-18 15:21:09 +03:00
Camilo Nova
ba37442252 Added support for Django signals, big code refactor and improvements 2017-11-17 17:15:34 -05:00
Camilo Nova
0239e173e0 🔥 Clean weird logic when processing proxy ips 2016-07-20 11:38:37 -05:00
Camilo Nova
08f40bc13b 🔥 Cleaning 2016-06-24 09:42:18 -05:00
Yohan Graterol
677fa3986b Added app_label for RemovedInDjango19Warning 2016-05-23 08:02:33 -05:00
Marco Schweighauser
3637a8038d Add db indexes to CommonAccess model 2015-12-17 13:50:29 -08:00
polvoblanco
81bebc4c32 Change IPAddressField to GenericIPAddressField
When using a PostgreSQL database and the client does not pass an IP address you get an inet error.  This is a known problem with PostgreSQL and the IPAddressField.

https://code.djangoproject.com/ticket/5622

It can be fixed by using a GenericIPAddressField instead.
2014-07-31 17:57:33 +01:00
Amr Hassan
f6f494cc11 Replaced six imports with django.utils.six ones 2014-03-05 11:43:05 +02:00
Amr Hassan
c90ee0562a Replaced u string literal prefixes with six.u() calls to make it compatible with Python 3.2 2014-03-02 12:20:21 +02:00
Camilo Nova
dacdb32d18 Make sure axes can handle weird user agents. Fixes #38 2013-04-04 19:19:52 -05:00
Justin Slattery
184458416b Increased http accept header length per issue #24. 2013-01-22 08:38:29 -05:00
Alex Clark
61b17b4d56 Release 1.2.6 2012-12-04 12:33:57 -05:00
Alex Clark
9bd1724aee Should be username not user, I think 2012-11-28 20:34:05 -05:00
Ken Cochrane
3b58e9bc16 fixed a couple of issues from previous commits, imported signals in models to load them correctly. 2012-11-25 19:41:55 -05:00
Ken Cochrane
9682a39528 Added AccessLog model to log all access attempts. refactored the models so there is a common abstract base class. Also added the model to django admin 2012-11-25 15:46:45 -05:00
Josh VanderLinden
bd88ac1e7c Incorporating changes offered by kostrom in pull request #6 a flippin year ago... 2012-08-26 00:36:52 -06:00
Mike Blume
b1b0cb390e lots of pep8 fixes 2011-04-12 21:05:32 +00:00
Mike Blume
50733bce76 make failures a property 2011-03-16 15:13:06 +00:00
Mike Blume
887df1ac4b lose settings import -- we don't seem to be using it. 2011-03-16 15:12:51 +00:00
codekoala
eafc81b7d8 GC #1 - I've implemented some of the groovy features offered by philipn. Thanks! 2009-12-16 23:24:30 -05:00
wheaties.box
404f02b85c Initial import
--HG--
extra : convert_revision : svn%3A6515f4ec-ab5a-11dd-8fd9-859366ca643a/trunk%402
2008-11-05 22:52:40 +00:00