Commit graph

167 commits

Author SHA1 Message Date
Mike Blume
a1d4d098ad bump this up to 1.0 RC 1 2010-09-24 22:46:04 +00:00
Mike Blume
7e7f52e80c locking someone out deserves a warn, not just an info 2010-09-24 22:42:21 +00:00
Mike Blume
c4304f6a89 successful login resets failure count
If a user fails to login, then logs in successfully, we wipe the slate.
2010-09-20 23:18:14 +00:00
Mike Blume
cf8cf00f94 a bit less verbosity -- this gets imported a lot if you're using runserver 2010-09-20 22:18:09 +00:00
Mike Blume
62f43b97d2 update logging style a bit 2010-09-20 17:59:25 +00:00
Mike Blume
62dbac1c26 some controls on ouput verbosity 2010-09-20 17:43:16 +00:00
Mike Blume
df61513e71 allow more flexibility in lockout display
creates settings for either an URL to redirect to, or a template to
display.
2010-09-20 17:32:31 +00:00
Mike Blume
063111434d log to arbitrary loggers 2010-09-15 09:46:38 -07:00
Mike Blume
7bc8e8a3b3 ask forgiveness, not permission 2010-09-15 09:46:32 -07:00
Mike Blume
5f10ffddc2 move check_request out to its own function, so folks can import it.
check_request takes a request and a boolean, is_unsuccessful.

It updates the database as needed, then returns True if the response
should continue unchanged, and False if it should be blocked.

it also logs out the request if we're blocking.
2010-09-15 07:41:18 +00:00
Mike Blume
a27ac6444b check for lockout immediately, rather than mucking with the database.
This has the side effect that a locked-out user attempting to log in does
not reset their cooloff time. This is good, since the reverse may feel
overly 'punitive' to the user.
2010-09-15 03:39:24 +00:00
Mike Blume
8a4f146cb3 fix some variable name issues 2010-09-15 03:36:31 +00:00
Mike Blume
49de80206d add nifty cooloff feature.
Allows user to define an amount of time after which old failed attempts
will be forgotten.
2010-09-14 21:28:42 +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
e1e68ee2c0 Created tag 0.1.1-rc1
--HG--
extra : convert_revision : svn%3A6515f4ec-ab5a-11dd-8fd9-859366ca643a/trunk%404
2008-12-06 10:09:34 +00:00
wheaties.box
8dd2141605 Fixed a problem with what seems to be several levels of recursion causing many AccessAttempt objects to be created even though only one failed login attempt took place (for example). It seems to be working anyway...
--HG--
extra : convert_revision : svn%3A6515f4ec-ab5a-11dd-8fd9-859366ca643a/trunk%403
2008-12-06 09:50:52 +00: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