Merge pull request #4575 from matrix-org/t3chguy/registration_disabled_prompt_server

Prompt user to specify an alternate server if theirs has registration off
pull/21833/head
Michael Telatynski 2020-05-12 09:43:34 +01:00 committed by GitHub
commit ad2c9df271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: [],