Fix disable_3pid_login being ignored for the email field (#11335)
parent
ddb8e0aa3a
commit
0647aafc3a
|
@ -433,7 +433,8 @@ export default class RegistrationForm extends React.PureComponent<IProps, IState
|
||||||
}
|
}
|
||||||
|
|
||||||
private showEmail(): boolean {
|
private showEmail(): boolean {
|
||||||
if (!this.authStepIsUsed("m.login.email.identity")) {
|
const threePidLogin = !SdkConfig.get().disable_3pid_login;
|
||||||
|
if (!threePidLogin || !this.authStepIsUsed("m.login.email.identity")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue