Merge pull request #2548 from jryans/auth-reg-disabled
Add error message when registration is disabled
This commit is contained in:
commit
22178f2d7c
2 changed files with 7 additions and 2 deletions
|
@ -164,9 +164,13 @@ 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 on this homeserver."),
|
||||
});
|
||||
} else {
|
||||
this.setState({
|
||||
errorText: _t("Unable to query for supported registration methods"),
|
||||
errorText: _t("Unable to query for supported registration methods."),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue