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;
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));