rate_limiter: Rename authenticate domain to authenticate_by_username.

This prepares for adding authenticate_by_ip_address.
This commit is contained in:
Mateusz Mandera
2019-12-30 21:17:11 +01:00
committed by Tim Abbott
parent 7c78d8a966
commit 7b34853328
6 changed files with 10 additions and 9 deletions

View File

@@ -169,7 +169,7 @@ def common_get_active_user(email: str, realm: Realm,
return user_profile
AuthFuncT = TypeVar('AuthFuncT', bound=Callable[..., Optional[UserProfile]])
rate_limiting_rules = settings.RATE_LIMITING_RULES['authenticate']
rate_limiting_rules = settings.RATE_LIMITING_RULES['authenticate_by_username']
class RateLimitedAuthenticationByUsername(RateLimitedObject):
def __init__(self, username: str) -> None: