add account create / login throttle parameters to the settings files
(cherry picked from commit e70330d81b2c24dddc004ee65e66f4942cb3350b)
This commit is contained in:
parent
3c08447f59
commit
85141fabcd
2 changed files with 10 additions and 2 deletions
|
|
@ -57,8 +57,10 @@ _CMDSET_ACCOUNT = settings.CMDSET_ACCOUNT
|
|||
_MUDINFO_CHANNEL = None
|
||||
|
||||
# Create throttles for too many account-creations and login attempts
|
||||
CREATION_THROTTLE = Throttle(limit=2, timeout=10 * 60)
|
||||
LOGIN_THROTTLE = Throttle(limit=5, timeout=5 * 60)
|
||||
CREATION_THROTTLE = Throttle(limit=settings.CREATION_THROTTLE_LIMIT,
|
||||
timeout=settings.CREATION_THROTTLE_TIMEOUT)
|
||||
LOGIN_THROTTLE = Throttle(limit=settings.LOGIN_THROTTLE_LIMIT,
|
||||
timeout=settings.LOGIN_THROTTLE_TIMEOUT)
|
||||
|
||||
|
||||
class AccountSessionHandler(object):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue