From a6b9b4b40752f8e963fce7fd6dba0930a137b20e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 18 May 2016 09:55:46 +0200 Subject: [PATCH] opps, use addedUser for having the id number available --- .../model/register/JobsUserRegistrationSessionBean.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java b/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java index dc056a9..ef28ce3 100644 --- a/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java @@ -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 -- 2.39.5