Fix disable_3pid_login being ignored for the email field (#11335)
This commit is contained in:
parent
ddb8e0aa3a
commit
0647aafc3a
1 changed files with 2 additions and 1 deletions
|
@ -433,7 +433,8 @@ export default class RegistrationForm extends React.PureComponent<IProps, IState
|
|||
}
|
||||
|
||||
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 true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue