class

Patty::Security::LoginLimiter

Inherits Reference < Object

Constants

COOLDOWN = 15.minutes
COOLDOWN_FAILURES = 10
ENTRY_TTL = 1.hour
GLOBAL_CAPACITY = 20.0
GLOBAL_REFILL = 1.0 / 10.0
MAX_ENTRIES = 10000
PER_IP_CAPACITY = 5.0
PER_IP_REFILL = 1.0 / 60.0

Instance methods

check(ip : String, now : Time = Time.utc) : Decision
Source
failure!(ip : String, now : Time = Time.utc)
Source
reset!
Source
success!(ip : String)
Source

Nested types