Commit graph

47 commits

Author SHA1 Message Date
Aleksi Häkli
4b77eb69ee Run black autoformatting 2026-02-11 22:14:31 +02:00
kuldeepkhatke
ba7b72f9d9 Updated expires_at for null, blank False, lte query update, admin expiration logic simplify 2025-07-05 16:19:19 +03:00
kuldeepkhatke
f5951e966c Modified access_attempt as pk 2025-07-05 16:19:19 +03:00
kuldeepkhatke
df8fb35e18 Shifted epired_at filed to new model 2025-07-05 16:19:19 +03:00
kuldeepkhatke
0fd9ccd1d4 Added individual attempt expiry feature 2025-07-05 16:19:19 +03:00
Bruno Alla
3f4526e8f5 chore: revert unrelated stylistic change 2024-10-02 20:15:31 +03:00
Bruno Alla
2fb4c81243 feat: pass username to AXES_COOLOFF_TIME callback
If the AXES_COOLOFF_TIME is a callable or path to a callable taking
an argument, pass the username to it.

This should enable users to customize the cool off to be user dependant,
and possibly implement a growing cool-off time:

- First lockout cools off after 5 mins
- Second one after 10 mins
- etc...
2024-10-02 20:15:31 +03:00
Davide
014483c65d
Add session hash to access log 2024-04-30 16:22:50 +02:00
Aleksi Häkli
621dfa6882 Fix code formatting 2022-05-16 10:41:07 +03:00
Gregory DAVID
da7a9b25ed Add AccessFailureLogclass to models to keep trace of all failed logins 2022-04-08 22:16:19 +03:00
Petr Dlouhý
b5bac68f90 fix duplicated AccessAttempts 2021-09-19 13:26:16 +03:00
Aleksi Häkli
93bb73552e
Upgrade CI tooling to use automatic code formatting 2019-09-28 19:28:17 +03:00
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