1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Prompt user to specify an alternate server if their chosen one has registration disabled

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2020-05-11 20:10:45 +01:00
parent c2fea7d4d8
commit c2dcb60f0b

View File

@@ -267,6 +267,7 @@ export default createReactClass({
dis.dispatch({action: 'start_login'}); dis.dispatch({action: 'start_login'});
} else { } else {
this.setState({ this.setState({
serverErrorIsFatal: true, // fatal because user cannot continue on this server
errorText: _t("Registration has been disabled on this homeserver."), errorText: _t("Registration has been disabled on this homeserver."),
// add empty flows array to get rid of spinner // add empty flows array to get rid of spinner
flows: [], flows: [],