From: Roland Häder Date: Mon, 29 Aug 2016 15:56:15 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=45c0b93a7f78e8ae261c35d260dcaff8d55534e7;p=jjobs-war.git Please cherry-pick: - added baseUrl parameter (from own FacesUtils class) Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jjobs/beans/user/password/JobsUserPasswordWebRequestBean.java b/src/java/org/mxchange/jjobs/beans/user/password/JobsUserPasswordWebRequestBean.java index 4d5d4c8f..a982edc8 100644 --- a/src/java/org/mxchange/jjobs/beans/user/password/JobsUserPasswordWebRequestBean.java +++ b/src/java/org/mxchange/jjobs/beans/user/password/JobsUserPasswordWebRequestBean.java @@ -26,6 +26,7 @@ import javax.inject.Named; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; +import org.mxchange.jcoreee.utils.FacesUtils; import org.mxchange.jjobs.beans.BaseJobsController; import org.mxchange.jjobs.beans.features.JobsFeaturesWebApplicationController; import org.mxchange.jjobs.beans.login.JobsUserLoginWebSessionController; @@ -169,8 +170,11 @@ public class JobsUserPasswordWebRequestBean extends BaseJobsController implement user.setUserEncryptedPassword(encryptedPassword); try { + // Get base URL + String baseUrl = FacesUtils.generateBaseUrl(); + // All is set, then update password - PasswordHistory passwordHistory = this.userBean.updateUserPassword(user); + PasswordHistory passwordHistory = this.userBean.updateUserPassword(user, baseUrl); // Fire event this.userUpdatedPasswordEvent.fire(new UserUpdatedPasswordEvent(passwordHistory));