From 5c374cb9018c19d6fbf8c3b20e8c677acbc90681 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 5 Aug 2016 15:39:44 +0200 Subject: [PATCH] Fixed base URL: (please cherry-pick) - "detect" base URL and handle it over as mail templates may link to the website --- .../beans/user/AddressbookAdminUserWebRequestBean.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.39.5