|
1 | 1 | /* |
2 | | - * Copyright (c) 2019-2024, FusionAuth, All Rights Reserved |
| 2 | + * Copyright (c) 2019-2026, FusionAuth, All Rights Reserved |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
|
31 | 31 | public class EmailConfiguration implements Buildable<EmailConfiguration> { |
32 | 32 | public List<EmailHeader> additionalHeaders = new ArrayList<>(); |
33 | 33 |
|
| 34 | + public UUID adminTwoFactorMethodRemoveEmailTemplateId; |
| 35 | + |
34 | 36 | public boolean debug; |
35 | 37 |
|
36 | 38 | public String defaultFromEmail = "change-me@example.com"; |
@@ -96,6 +98,7 @@ public EmailConfiguration() { |
96 | 98 |
|
97 | 99 | public EmailConfiguration(EmailConfiguration other) { |
98 | 100 | this.additionalHeaders.addAll(other.additionalHeaders); |
| 101 | + this.adminTwoFactorMethodRemoveEmailTemplateId = other.adminTwoFactorMethodRemoveEmailTemplateId; |
99 | 102 | this.debug = other.debug; |
100 | 103 | this.defaultFromEmail = other.defaultFromEmail; |
101 | 104 | this.defaultFromName = other.defaultFromName; |
@@ -139,6 +142,7 @@ public boolean equals(Object o) { |
139 | 142 | verifyEmail == that.verifyEmail && |
140 | 143 | verifyEmailWhenChanged == that.verifyEmailWhenChanged && |
141 | 144 | Objects.equals(additionalHeaders, that.additionalHeaders) && |
| 145 | + Objects.equals(adminTwoFactorMethodRemoveEmailTemplateId, that.adminTwoFactorMethodRemoveEmailTemplateId) && |
142 | 146 | Objects.equals(debug, that.debug) && |
143 | 147 | Objects.equals(defaultFromEmail, that.defaultFromEmail) && |
144 | 148 | Objects.equals(defaultFromName, that.defaultFromName) && |
@@ -168,7 +172,7 @@ public boolean equals(Object o) { |
168 | 172 |
|
169 | 173 | @Override |
170 | 174 | public int hashCode() { |
171 | | - return Objects.hash(additionalHeaders, debug, defaultFromEmail, defaultFromName, emailUpdateEmailTemplateId, emailVerifiedEmailTemplateId, forgotPasswordEmailTemplateId, host, implicitEmailVerificationAllowed, loginIdInUseOnCreateEmailTemplateId, loginIdInUseOnUpdateEmailTemplateId, loginNewDeviceEmailTemplateId, loginSuspiciousEmailTemplateId, password, passwordResetSuccessEmailTemplateId, passwordUpdateEmailTemplateId, passwordlessEmailTemplateId, port, properties, security, setPasswordEmailTemplateId, twoFactorMethodAddEmailTemplateId, twoFactorMethodRemoveEmailTemplateId, unverified, username, verificationEmailTemplateId, verificationStrategy, verifyEmail, verifyEmailWhenChanged); |
| 175 | + return Objects.hash(additionalHeaders, adminTwoFactorMethodRemoveEmailTemplateId, debug, defaultFromEmail, defaultFromName, emailUpdateEmailTemplateId, emailVerifiedEmailTemplateId, forgotPasswordEmailTemplateId, host, implicitEmailVerificationAllowed, loginIdInUseOnCreateEmailTemplateId, loginIdInUseOnUpdateEmailTemplateId, loginNewDeviceEmailTemplateId, loginSuspiciousEmailTemplateId, password, passwordResetSuccessEmailTemplateId, passwordUpdateEmailTemplateId, passwordlessEmailTemplateId, port, properties, security, setPasswordEmailTemplateId, twoFactorMethodAddEmailTemplateId, twoFactorMethodRemoveEmailTemplateId, unverified, username, verificationEmailTemplateId, verificationStrategy, verifyEmail, verifyEmailWhenChanged); |
172 | 176 | } |
173 | 177 |
|
174 | 178 | public void normalize() { |
|
0 commit comments