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

This commit is contained in:
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

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;