1
0

Explain why we rate-limit using a threepid

This commit is contained in:
Andrew Morgan
2020-06-25 11:03:10 +01:00
parent d9277e94f3
commit cb272bcfe8
+2 -1
View File
@@ -161,7 +161,8 @@ class LoginRestServlet(RestServlet):
if not username:
if medium and address:
# The user attempted to login via threepid and failed
# Record this failed attempt
# Record this failed attempt using the threepid as a key, as otherwise
# the user could bypass the ratelimiter by not providing a username
self._failed_attempts_ratelimiter.can_do_action(
(medium, address.lower())
)