]> git.mxchange.org Git - jfinancials-ejb.git/commitdiff
used getManagedUser()
authorRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 15:01:02 +0000 (17:01 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 15:01:02 +0000 (17:01 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jusercore/model/user/resendlink/FinancialsResendLinkSessionBean.java

index 48cc22c4ad2a367533cc70074a21ca71808bd039..187abcd0e372dc505b0e45c6eaac5d285c75cb09 100644 (file)
@@ -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);