- added baseUrl parameter (from own FacesUtils class)
Signed-off-by: Roland Häder <roland@mxchange.org>
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
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;
import org.mxchange.jjobs.beans.BaseJobsController;
import org.mxchange.jjobs.beans.features.JobsFeaturesWebApplicationController;
import org.mxchange.jjobs.beans.login.JobsUserLoginWebSessionController;
user.setUserEncryptedPassword(encryptedPassword);
try {
user.setUserEncryptedPassword(encryptedPassword);
try {
+ // Get base URL
+ String baseUrl = FacesUtils.generateBaseUrl();
+
// All is set, then update password
// 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));
// Fire event
this.userUpdatedPasswordEvent.fire(new UserUpdatedPasswordEvent(passwordHistory));