Use new flag in /versions
This commit is contained in:
parent
19c7a4627d
commit
41a9db3224
2 changed files with 9 additions and 11 deletions
|
@ -55,7 +55,7 @@ module.exports = React.createClass({
|
|||
flows: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
serverConfig: PropTypes.instanceOf(ValidatedServerConfig).isRequired,
|
||||
canSubmit: PropTypes.bool,
|
||||
serverCapabilities: PropTypes.object,
|
||||
serverRequiresIdServer: PropTypes.bool,
|
||||
},
|
||||
|
||||
getDefaultProps: function() {
|
||||
|
@ -437,9 +437,8 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
_showEmail() {
|
||||
const idServerRequired = !this.props.serverCapabilities['me.dbkr.idomyownemail'];
|
||||
const haveIs = Boolean(this.props.serverConfig.isUrl);
|
||||
if ((idServerRequired && !haveIs) || !this._authStepIsUsed('m.login.email.identity')) {
|
||||
if ((this.props.serverRequiresIdServer && !haveIs) || !this._authStepIsUsed('m.login.email.identity')) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue