]> git.mxchange.org Git - pizzaservice-ejb.git/commitdiff
opps, use addedUser for having the id number available
authorRoland Häder <roland@mxchange.org>
Wed, 18 May 2016 07:55:46 +0000 (09:55 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 20 May 2016 21:17:55 +0000 (23:17 +0200)
src/java/org/mxchange/jusercore/model/register/PizzaUserRegistrationSessionBean.java

index eb40ed70cb7e2abaf6b3505e116b62e284a44a3c..bad0d8ece8bb0836befb4d80a29503f206259e35 100644 (file)
@@ -172,7 +172,7 @@ public class PizzaUserRegistrationSessionBean extends BasePizzaDatabaseBean impl
 
                try {
                        // Create email address and set
-                       emailAddress = new InternetAddress(user.getUserContact().getContactEmailAddress());
+                       emailAddress = new InternetAddress(addedUser.getUserContact().getContactEmailAddress());
                } catch (final AddressException ex) {
                        // Throw again
                        throw new EJBException(ex);
@@ -180,7 +180,7 @@ public class PizzaUserRegistrationSessionBean extends BasePizzaDatabaseBean impl
 
                // Send email
                // TODO: Internationlize the subject line somehow
-               this.sendEmail("Registration", "registration", emailAddress, user); //NOI18N
+               this.sendEmail("Registration", "registration", emailAddress, addedUser); //NOI18N
 
                // Trace message
                this.getLoggerBeanLocal().logTrace(MessageFormat.format("registerUser: addedUser={0},addedUser.userId={1} - EXIT!", addedUser, addedUser.getUserId())); //NOI18N