From c4d2ae3024b377d3b42c8fd043071a7abc801692 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 23 May 2016 09:48:59 +0200 Subject: [PATCH] set user's initial locale from given one MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../jjobs/beans/user/JobsUserWebSessionBean.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java b/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java index afeadabd..ee602c26 100644 --- a/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java @@ -38,6 +38,7 @@ import org.mxchange.jcontacts.contact.ContactSessionBeanRemote; import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent; import org.mxchange.jjobs.beans.BaseJobsController; import org.mxchange.jjobs.beans.contact.JobsContactWebSessionController; +import org.mxchange.jjobs.beans.localization.JobsLocalizationSessionController; import org.mxchange.jjobs.beans.login.JobsUserLoginWebSessionController; import org.mxchange.jjobs.beans.register.JobsUserRegisterWebSessionController; import org.mxchange.jusercore.events.confirmation.UserConfirmedAccountEvent; @@ -81,6 +82,18 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs @Inject private JobsContactWebSessionController contactController; + /** + * Localization controller + */ + @Inject + private JobsLocalizationSessionController localizationController; + + /** + * Login bean (controller) + */ + @Inject + private JobsUserLoginWebSessionController loginController; + /** * Registration controller */ @@ -436,7 +449,8 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs this.setUserPasswordRepeat(randomPassword); } - // Set user name and mode + // Set local, user name and mode + user.setUserLocale(this.localizationController.getLocale()); user.setUserName(this.getUserName()); user.setUserProfileMode(this.getUserProfileMode()); -- 2.39.5