From: Roland Häder Date: Mon, 26 Jun 2017 15:01:02 +0000 (+0200) Subject: used getManagedUser() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b848b3a912d6eab4d209e7ce246c7921f4208fdb;p=jfinancials-ejb.git used getManagedUser() Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jusercore/model/user/resendlink/FinancialsResendLinkSessionBean.java b/src/java/org/mxchange/jusercore/model/user/resendlink/FinancialsResendLinkSessionBean.java index 48cc22c..187abcd 100644 --- a/src/java/org/mxchange/jusercore/model/user/resendlink/FinancialsResendLinkSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/resendlink/FinancialsResendLinkSessionBean.java @@ -28,7 +28,6 @@ import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean; import org.mxchange.jusercore.exceptions.UserNotFoundException; import org.mxchange.jusercore.exceptions.UserStatusConfirmedException; import org.mxchange.jusercore.exceptions.UserStatusLockedException; -import org.mxchange.jusercore.model.user.LoginUser; import org.mxchange.jusercore.model.user.User; import org.mxchange.jusercore.model.user.UserSessionBeanRemote; import org.mxchange.jusercore.model.user.register.UserRegistrationSessionBeanRemote; @@ -103,7 +102,7 @@ public class FinancialsResendLinkSessionBean extends BaseFinancialsDatabaseBean String confirmationKey = this.registerBean.generateConfirmationKey(user); // Get managed instance - User managedUser = this.getEntityManager().find(LoginUser.class, user.getUserId()); + User managedUser = this.getManagedUser(user); // Set it in user managedUser.setUserConfirmKey(confirmationKey);