1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Disable MSISDN registration if the homeserver doesn't support it

This commit is contained in:
Travis Ralston
2019-08-30 15:50:51 -06:00
parent 63be16beff
commit d47fb799a5

View File

@@ -447,7 +447,7 @@ module.exports = React.createClass({
_showPhoneNumber() {
const threePidLogin = !SdkConfig.get().disable_3pid_login;
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 true;