]> git.mxchange.org Git - pizzaservice-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Wed, 31 Aug 2016 14:15:02 +0000 (16:15 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 31 Aug 2016 19:53:51 +0000 (21:53 +0200)
- maybe use getManagedUser() ?

src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java

index fed3db63ec5788ef274594ac6c137888d1211e6f..5fe89f8c6d34ffecf64944a0a3011e2b800a880a 100644 (file)
@@ -649,7 +649,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
 
                // Set all data here to avoid user instance become detached again
                entry.setUserPasswordHistoryPasswordHash(managedUser.getUserEncryptedPassword());
-               entry.setUserPasswordHistoryUser(managedUser);
+               entry.setUserPasswordHistoryUser(this.getManagedUser(user));
                entry.setUserPasswordHistoryCreated(new GregorianCalendar());
 
                // Persist it