mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
rate_limiter: Rename authenticate domain to authenticate_by_username.
This prepares for adding authenticate_by_ip_address.
This commit is contained in:
committed by
Tim Abbott
parent
7c78d8a966
commit
7b34853328
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user