Skip server details on registration with a default HS
If Riot has been configured with a `default_hs_url` (or `default_server_name`, which then sets a default HS URL), then skip the server details on registration by default. Fixes https://github.com/vector-im/riot-web/issues/8840
This commit is contained in:
parent
8b66b6bdb3
commit
fe141412b6
2 changed files with 17 additions and 2 deletions
|
@ -60,6 +60,7 @@ module.exports = React.createClass({
|
|||
customIsUrl: PropTypes.string,
|
||||
defaultHsUrl: PropTypes.string,
|
||||
defaultIsUrl: PropTypes.string,
|
||||
skipServerDetails: PropTypes.bool,
|
||||
brand: PropTypes.string,
|
||||
email: PropTypes.string,
|
||||
// registration shouldn't know or care how login is done.
|
||||
|
@ -75,8 +76,10 @@ module.exports = React.createClass({
|
|||
// (they could come in from the URL params in a
|
||||
// registration email link)
|
||||
(this.props.clientSecret && this.props.sessionId) ||
|
||||
// or if custom URLs aren't allowed, skip them
|
||||
!customURLsAllowed
|
||||
// if custom URLs aren't allowed, skip to form
|
||||
!customURLsAllowed ||
|
||||
// if other logic says to, skip to form
|
||||
this.props.skipServerDetails
|
||||
) {
|
||||
initialPhase = PHASE_REGISTRATION;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue