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

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-05-11 20:10:45 +01:00
parent c2fea7d4d8
commit c2dcb60f0b
1 changed files with 1 additions and 0 deletions

View File

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