Add error message when registration is disabled

This commit is contained in:
J. Ryan Stinnett 2019-01-31 15:54:53 -06:00
parent 21b7e7f833
commit bc4a603672
2 changed files with 5 additions and 0 deletions

View file

@ -164,6 +164,10 @@ module.exports = React.createClass({
this.setState({ this.setState({
flows: e.data.flows, flows: e.data.flows,
}); });
} else if (e.httpStatus === 403 && e.errcode === "M_UNKNOWN") {
this.setState({
errorText: _t("Registration has been disabled"),
});
} else { } else {
this.setState({ this.setState({
errorText: _t("Unable to query for supported registration methods"), errorText: _t("Unable to query for supported registration methods"),

View file

@ -1418,6 +1418,7 @@
"Failed to fetch avatar URL": "Failed to fetch avatar URL", "Failed to fetch avatar URL": "Failed to fetch avatar URL",
"Set a display name:": "Set a display name:", "Set a display name:": "Set a display name:",
"Upload an avatar:": "Upload an avatar:", "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", "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.", "This server does not support authentication with a phone number.": "This server does not support authentication with a phone number.",
"Missing password.": "Missing password.", "Missing password.": "Missing password.",