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=f492eebe89cdf2f70f5ebd8ac91642b7e7d91a89;p=pizzaservice-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/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);