Tell the user when registration is being rate limited (#34519)

* Tell the user when registration is being rate limited

* Disable the submit button while registration is rate limited

The warning now sits with the button it is disabling, below the server picker,
rather than above it, so it reads as the reason you cannot continue.

The rate limit message moves out of errorText into its own state field to get
there, which also leaves the position of every other registration error alone.

When the server tells us how long to wait, we ask again ourselves once that
time is up, so the form comes back without the user having to guess when a
reload is worth it.

* Set the rate limit warning to medium weight

Scoped to the registration rate limit warning so the other auth errors keep
the bold they have always had.
This commit is contained in:
hayyaksi
2026-08-11 15:39:39 +00:00
committed by GitHub
parent 76aeb783b6
commit 46d55f25a2
4 changed files with 103 additions and 0 deletions
@@ -31,6 +31,12 @@ Please see LICENSE files in the repository root for full details.
}
}
/* Medium rather than the bold every other auth error uses: this one sits directly above the button it
is disabling, and does not need to shout over it. Scoped so the login errors keep their weight. */
.mx_Login_error.mx_Registration_rateLimitError {
font-weight: var(--cpd-font-weight-medium);
}
.mx_Register_footerActions {
display: flex;
flex-direction: row;