Fix disable_3pid_login being ignored for the email field (#11335)

pull/28788/head^2
Michael Telatynski 2023-07-28 10:42:20 +01:00 committed by GitHub
parent ddb8e0aa3a
commit 0647aafc3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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;