From f492eebe89cdf2f70f5ebd8ac91642b7e7d91a89 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/PizzaAdminUserWebRequestBean.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java b/src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java index 89fc02b8..3c00e1e2 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java @@ -30,6 +30,7 @@ import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; 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 PizzaAdminUserWebRequestBean extends BasePizzaController implements } 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