From 763027b9211eba3fa46d4c08702639cba91bdad6 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Roland=20H=C3=A4der?= <roland@mxchange.org>
Date: Sun, 9 Jul 2017 10:35:33 +0200
Subject: [PATCH] Please cherry-pick: - returned managed instance so the web
 controller (backing bean in your web   application) can continue to use it
 (mostly fire an event)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

Signed-off-by: Roland Häder <roland@mxchange.org>
---
 nbproject/build-impl.xml                                   | 4 ++--
 .../model/user/resendlink/PizzaResendLinkSessionBean.java  | 7 +++++--
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml
index 68097ec..874cfff 100644
--- a/nbproject/build-impl.xml
+++ b/nbproject/build-impl.xml
@@ -918,8 +918,8 @@ exists or setup the property manually. For example like this:
             <attribute name="jar-20-Extension-Name" value="${manifest.libs.GNU_JPDF_1.7.0.classpath}"/>
             <attribute name="jar-21-Extension-Name" value="${manifest.reference.pizzaservice-core.jar}"/>
             <attribute name="jar-22-Extension-Name" value="${manifest.reference.pizzaservice-lib.jar}"/>
-            <attribute name="jar-23-Extension-Name" value="${manifest.reference.pizzaservice-mailer-jar.jar}"/>
-            <attribute name="jar-17-Extension-Name" value="${manifest.file.reference.cdi-api.jar}"/>
+            <attribute name="jar-23-Extension-Name" value="${manifest.reference.pizzaservice-mailer-lib.jar}"/>
+            <attribute name="jar-24-Extension-Name" value="${manifest.file.reference.cdi-api.jar}"/>
         </manifest>
     </target>
     <target depends="compile" name="library-inclusion-in-manifest">
diff --git a/src/java/org/mxchange/jusercore/model/user/resendlink/PizzaResendLinkSessionBean.java b/src/java/org/mxchange/jusercore/model/user/resendlink/PizzaResendLinkSessionBean.java
index 82c21a6..d2290d4 100644
--- a/src/java/org/mxchange/jusercore/model/user/resendlink/PizzaResendLinkSessionBean.java
+++ b/src/java/org/mxchange/jusercore/model/user/resendlink/PizzaResendLinkSessionBean.java
@@ -64,7 +64,7 @@ public class PizzaResendLinkSessionBean extends BasePizzaDatabaseBean implements
 	}
 
 	@Override
-	public void resendConfirmationLink (final User user, final Locale locale, final String baseUrl) throws UserNotFoundException, UserStatusConfirmedException, UserStatusLockedException {
+	public User resendConfirmationLink (final User user, final Locale locale, final String baseUrl) throws UserNotFoundException, UserStatusConfirmedException, UserStatusLockedException {
 		// Log trace message
 		this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.resendConfirmationLink: user={1},locale={2},baseUrl={3} - CALLED!", this.getClass().getSimpleName(), user, locale, baseUrl)); //NOI18N
 
@@ -109,7 +109,10 @@ public class PizzaResendLinkSessionBean extends BasePizzaDatabaseBean implements
 		this.sendEmail("Resend user confirmation link", "user_resend_confirmation_link",  user, baseUrl, null); //NOI18N
 
 		// Log trace message
-		this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.resendConfirmationLink: EXIT!", this.getClass().getSimpleName())); //NOI18N
+		this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.resendConfirmationLink: managedUser={1} - EXIT!", this.getClass().getSimpleName(), managedUser)); //NOI18N
+
+		// Return updated instance
+		return managedUser;
 	}
 
 }
-- 
2.39.5