diff --git a/src/components/structures/auth/Registration.js b/src/components/structures/auth/Registration.js index 03b071ed48..166ae69a8f 100644 --- a/src/components/structures/auth/Registration.js +++ b/src/components/structures/auth/Registration.js @@ -164,6 +164,10 @@ module.exports = React.createClass({ this.setState({ flows: e.data.flows, }); + } else if (e.httpStatus === 403 && e.errcode === "M_UNKNOWN") { + this.setState({ + errorText: _t("Registration has been disabled"), + }); } else { this.setState({ errorText: _t("Unable to query for supported registration methods"), diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index fb025a9e61..9e9f9e4fad 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1418,6 +1418,7 @@ "Failed to fetch avatar URL": "Failed to fetch avatar URL", "Set a display name:": "Set a display name:", "Upload an avatar:": "Upload an avatar:", + "Registration has been disabled": "Registration has been disabled", "Unable to query for supported registration methods": "Unable to query for supported registration methods", "This server does not support authentication with a phone number.": "This server does not support authentication with a phone number.", "Missing password.": "Missing password.",