]> git.mxchange.org Git - jjobs-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>
Thu, 26 May 2016 13:15:29 +0000 (15:15 +0200)
src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java

index dc056a9ba4fa78b593a313d2a8140e092badc591..ef28ce3412aad8b6b2a10badfad46a3ff241f66b 100644 (file)
@@ -172,7 +172,7 @@ public class JobsUserRegistrationSessionBean extends BaseJobsDatabaseBean implem
 
                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 JobsUserRegistrationSessionBean extends BaseJobsDatabaseBean implem
 
                // 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