Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cooloff function and minor refactor #1

Closed
wants to merge 21 commits into from
Closed

Cooloff function and minor refactor #1

wants to merge 21 commits into from

Commits on Sep 14, 2010

  1. add nifty cooloff feature.

    Allows user to define an amount of time after which old failed attempts
    will be forgotten.
    Mike Blume committed Sep 14, 2010
    Copy the full SHA
    49de802 View commit details
    Browse the repository at this point in the history
  2. document cooloff feature

    Mike Blume committed Sep 14, 2010
    Copy the full SHA
    a6c2e2c View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2010

  1. fix some variable name issues

    Mike Blume committed Sep 15, 2010
    Copy the full SHA
    8a4f146 View commit details
    Browse the repository at this point in the history
  2. 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.
    Mike Blume committed Sep 15, 2010
    Copy the full SHA
    a27ac64 View commit details
    Browse the repository at this point in the history
  3. 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.
    MichaelBlume authored and Mike Blume committed Sep 15, 2010
    Copy the full SHA
    5f10ffd View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    7bc8e8a View commit details
    Browse the repository at this point in the history
  5. log to arbitrary loggers

    MichaelBlume committed Sep 15, 2010
    Copy the full SHA
    0631114 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2010

  1. allow more flexibility in lockout display

    creates settings for either an URL to redirect to, or a template to
    display.
    MichaelBlume authored and Mike Blume committed Sep 20, 2010
    Copy the full SHA
    df61513 View commit details
    Browse the repository at this point in the history
  2. doc new features

    Mike Blume committed Sep 20, 2010
    Copy the full SHA
    f289dc9 View commit details
    Browse the repository at this point in the history
  3. ignore .pyc files

    Mike Blume committed Sep 20, 2010
    Copy the full SHA
    be1db1d View commit details
    Browse the repository at this point in the history
  4. ignore build folder

    Mike Blume committed Sep 20, 2010
    Copy the full SHA
    5df6687 View commit details
    Browse the repository at this point in the history
  5. some controls on ouput verbosity

    Mike Blume committed Sep 20, 2010
    Copy the full SHA
    62dbac1 View commit details
    Browse the repository at this point in the history
  6. update logging style a bit

    Mike Blume committed Sep 20, 2010
    Copy the full SHA
    62f43b9 View commit details
    Browse the repository at this point in the history
  7. a bit less verbosity -- this gets imported a lot if you're using runs…

    …erver
    Mike Blume committed Sep 20, 2010
    Copy the full SHA
    cf8cf00 View commit details
    Browse the repository at this point in the history
  8. successful login resets failure count

    If a user fails to login, then logs in successfully, we wipe the slate.
    Mike Blume committed Sep 20, 2010
    Copy the full SHA
    c4304f6 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2010

  1. locking someone out deserves a warn, not just an info

    Mike Blume committed Sep 24, 2010
    Copy the full SHA
    7e7f52e View commit details
    Browse the repository at this point in the history
  2. bump this up to 1.0 RC 1

    Mike Blume committed Sep 24, 2010
    Copy the full SHA
    a1d4d09 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2010

  1. add reset command.

    from axes.utils import reset
    
    reset() will reset all lockouts and access records.
    reset(ip) will clear lockout/records for ip
    
    reset will print a message to std out if there is nothing to reset,
    unless called with silent = True
    Mike Blume committed Sep 27, 2010
    Copy the full SHA
    aa411dd View commit details
    Browse the repository at this point in the history
  2. bump version

    Mike Blume committed Sep 27, 2010
    Copy the full SHA
    bd04aac View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2010

  1. let git and hg ignore eachother

    Mike Blume committed Sep 29, 2010
    Copy the full SHA
    75eef30 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2010

  1. oneline these

    Mike Blume committed Oct 1, 2010
    Copy the full SHA
    c445896 View commit details
    Browse the repository at this point in the history