]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sat, 5 Nov 2022 06:55:36 +0000 (07:55 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 5 Nov 2022 06:56:16 +0000 (07:56 +0100)
- updated to latest constructor changes (emailChangeStatus)

src/java/org/mxchange/pizzaapplication/beans/user/email_address/PizzaEmailChangeWebRequestBean.java

index 7ad235b7d82d57cb1c4cbd805cb028916ce6a322..0eb78e95e649985a23200defdfe1171d39714d43 100644 (file)
@@ -32,6 +32,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 PizzaEmailChangeWebRequestBean extends BasePizzaBean implements Piz
                }
 
                // 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();