From: Roland Häder Date: Fri, 5 Aug 2016 13:39:44 +0000 (+0200) Subject: Fixed base URL: (please cherry-pick) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5c374cb9018c19d6fbf8c3b20e8c677acbc90681;p=addressbook-war.git Fixed base URL: (please cherry-pick) - "detect" base URL and handle it over as mail templates may link to the website --- diff --git a/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebRequestBean.java b/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebRequestBean.java index 13388fc4..d572894c 100644 --- a/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebRequestBean.java +++ b/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebRequestBean.java @@ -34,6 +34,7 @@ import org.mxchange.addressbook.beans.contact.AddressbookAdminContactWebRequestC import org.mxchange.addressbook.beans.contact.AddressbookContactWebSessionController; import org.mxchange.addressbook.beans.helper.AddressbookWebRequestController; import org.mxchange.jcontacts.contact.Contact; +import org.mxchange.jcoreee.utils.FacesUtils; import org.mxchange.jusercore.container.login.UserLoginContainer; import org.mxchange.jusercore.events.registration.UserRegisteredEvent; import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent; @@ -470,8 +471,11 @@ public class AddressbookAdminUserWebRequestBean extends BaseAddressbookControlle } try { + // Get base URL + String baseUrl = FacesUtils.generateBaseUrl(); + // Call EJB to lock account - this.adminUserBean.lockUserAccount(user, this.getUserLockReason()); + this.adminUserBean.lockUserAccount(user, this.getUserLockReason(), baseUrl); } catch (final UserStatusLockedException | UserStatusUnconfirmedException | UserNotFoundException ex) { // Throw again throw new FaceletException(ex);