mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Disable MSISDN registration if the homeserver doesn't support it
This commit is contained in:
parent
63be16beff
commit
d47fb799a5
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ module.exports = React.createClass({
|
||||||
_showPhoneNumber() {
|
_showPhoneNumber() {
|
||||||
const threePidLogin = !SdkConfig.get().disable_3pid_login;
|
const threePidLogin = !SdkConfig.get().disable_3pid_login;
|
||||||
const haveIs = Boolean(this.props.serverConfig.isUrl);
|
const haveIs = Boolean(this.props.serverConfig.isUrl);
|
||||||
if (!threePidLogin || !haveIs || !this._authStepIsUsed('m.login.msisdn')) {
|
if (!threePidLogin || (this.props.serverRequiresIdServer && !haveIs) || !this._authStepIsUsed('m.login.msisdn')) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue