Skip to content

Commit e348f5d

Browse files
author
FusionAuth Automation
committed
Sync from monorepo ae414f6ce430
1 parent 06ff2aa commit e348f5d

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

src/main/java/io/fusionauth/domain/EmailConfiguration.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019-2024, FusionAuth, All Rights Reserved
2+
* Copyright (c) 2019-2026, FusionAuth, All Rights Reserved
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,6 +31,8 @@
3131
public class EmailConfiguration implements Buildable<EmailConfiguration> {
3232
public List<EmailHeader> additionalHeaders = new ArrayList<>();
3333

34+
public UUID adminTwoFactorMethodRemoveEmailTemplateId;
35+
3436
public boolean debug;
3537

3638
public String defaultFromEmail = "change-me@example.com";
@@ -96,6 +98,7 @@ public EmailConfiguration() {
9698

9799
public EmailConfiguration(EmailConfiguration other) {
98100
this.additionalHeaders.addAll(other.additionalHeaders);
101+
this.adminTwoFactorMethodRemoveEmailTemplateId = other.adminTwoFactorMethodRemoveEmailTemplateId;
99102
this.debug = other.debug;
100103
this.defaultFromEmail = other.defaultFromEmail;
101104
this.defaultFromName = other.defaultFromName;
@@ -139,6 +142,7 @@ public boolean equals(Object o) {
139142
verifyEmail == that.verifyEmail &&
140143
verifyEmailWhenChanged == that.verifyEmailWhenChanged &&
141144
Objects.equals(additionalHeaders, that.additionalHeaders) &&
145+
Objects.equals(adminTwoFactorMethodRemoveEmailTemplateId, that.adminTwoFactorMethodRemoveEmailTemplateId) &&
142146
Objects.equals(debug, that.debug) &&
143147
Objects.equals(defaultFromEmail, that.defaultFromEmail) &&
144148
Objects.equals(defaultFromName, that.defaultFromName) &&
@@ -168,7 +172,7 @@ public boolean equals(Object o) {
168172

169173
@Override
170174
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);
172176
}
173177

174178
public void normalize() {

src/main/java/io/fusionauth/domain/TenantPhoneConfiguration.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024-2025, FusionAuth, All Rights Reserved
2+
* Copyright (c) 2024-2026, FusionAuth, All Rights Reserved
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,6 +27,8 @@
2727
*/
2828
public class TenantPhoneConfiguration implements Buildable<TenantPhoneConfiguration> {
2929

30+
public UUID adminTwoFactorMethodRemoveTemplateId;
31+
3032
public UUID forgotPasswordTemplateId;
3133

3234
public UUID identityUpdateTemplateId;
@@ -70,6 +72,7 @@ public TenantPhoneConfiguration() {
7072
}
7173

7274
public TenantPhoneConfiguration(TenantPhoneConfiguration other) {
75+
this.adminTwoFactorMethodRemoveTemplateId = other.adminTwoFactorMethodRemoveTemplateId;
7376
this.forgotPasswordTemplateId = other.forgotPasswordTemplateId;
7477
this.identityUpdateTemplateId = other.identityUpdateTemplateId;
7578
this.implicitPhoneVerificationAllowed = other.implicitPhoneVerificationAllowed;
@@ -102,6 +105,7 @@ public boolean equals(Object o) {
102105
TenantPhoneConfiguration that = (TenantPhoneConfiguration) o;
103106
return implicitPhoneVerificationAllowed == that.implicitPhoneVerificationAllowed &&
104107
verifyPhoneNumber == that.verifyPhoneNumber &&
108+
Objects.equals(adminTwoFactorMethodRemoveTemplateId, that.adminTwoFactorMethodRemoveTemplateId) &&
105109
Objects.equals(forgotPasswordTemplateId, that.forgotPasswordTemplateId) &&
106110
Objects.equals(identityUpdateTemplateId, that.identityUpdateTemplateId) &&
107111
Objects.equals(loginIdInUseOnCreateTemplateId, that.loginIdInUseOnCreateTemplateId) &&
@@ -124,6 +128,6 @@ public boolean equals(Object o) {
124128

125129
@Override
126130
public int hashCode() {
127-
return Objects.hash(forgotPasswordTemplateId, identityUpdateTemplateId, implicitPhoneVerificationAllowed, loginIdInUseOnCreateTemplateId, loginIdInUseOnUpdateTemplateId, loginNewDeviceTemplateId, loginSuspiciousTemplateId, messengerId, passwordResetSuccessTemplateId, passwordUpdateTemplateId, passwordlessTemplateId, setPasswordTemplateId, twoFactorMethodAddTemplateId, twoFactorMethodRemoveTemplateId, unverified, verificationCompleteTemplateId, verificationStrategy, verificationTemplateId, verifyPhoneNumber);
131+
return Objects.hash(adminTwoFactorMethodRemoveTemplateId, forgotPasswordTemplateId, identityUpdateTemplateId, implicitPhoneVerificationAllowed, loginIdInUseOnCreateTemplateId, loginIdInUseOnUpdateTemplateId, loginNewDeviceTemplateId, loginSuspiciousTemplateId, messengerId, passwordResetSuccessTemplateId, passwordUpdateTemplateId, passwordlessTemplateId, setPasswordTemplateId, twoFactorMethodAddTemplateId, twoFactorMethodRemoveTemplateId, unverified, verificationCompleteTemplateId, verificationStrategy, verificationTemplateId, verifyPhoneNumber);
128132
}
129133
}

0 commit comments

Comments
 (0)