From 049f779e7d48c2a096e0b67a164ffb5d27a87ca1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 5 Nov 2022 07:55:36 +0100 Subject: [PATCH] Please cherry-pick: - updated to latest constructor changes (emailChangeStatus) --- .../AddressbookEmailChangeWebRequestBean.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/java/org/mxchange/addressbook/beans/user/email_address/AddressbookEmailChangeWebRequestBean.java b/src/java/org/mxchange/addressbook/beans/user/email_address/AddressbookEmailChangeWebRequestBean.java index 5300169e..93cc951e 100644 --- a/src/java/org/mxchange/addressbook/beans/user/email_address/AddressbookEmailChangeWebRequestBean.java +++ b/src/java/org/mxchange/addressbook/beans/user/email_address/AddressbookEmailChangeWebRequestBean.java @@ -35,6 +35,7 @@ import org.mxchange.jcontacts.model.contact.Contact; import org.mxchange.jcoreee.utils.FacesUtils; import org.mxchange.jusercore.model.email_address.ChangeableEmailAddress; import org.mxchange.jusercore.model.email_address.EmailAddressChange; +import org.mxchange.jusercore.model.email_address.status.EmailChangeStatus; import org.mxchange.jusercore.model.user.User; import org.mxchange.jusercore.model.user.email_address.UserEmailChangeSessionBeanRemote; import org.mxchange.juserlogincore.exceptions.UserPasswordMismatchException; @@ -145,7 +146,11 @@ public class AddressbookEmailChangeWebRequestBean extends BaseAddressbookBean im } // Create change object, to save EJB calls, the hash is not generated here - final ChangeableEmailAddress emailChange = new EmailAddressChange(user, this.getEmailAddress()); + final ChangeableEmailAddress emailChange = new EmailAddressChange( + user, + this.getEmailAddress(), + EmailChangeStatus.NEW + ); // Get base URL final String baseUrl = FacesUtils.generateBaseUrl(); -- 2.39.5