]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Fixed base URL: (please cherry-pick)
authorRoland Häder <roland@mxchange.org>
Fri, 5 Aug 2016 13:39:44 +0000 (15:39 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 6 Aug 2016 20:04:05 +0000 (22:04 +0200)
- "detect" base URL and handle it over as mail templates may link to the website

src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java

index 89fc02b806f3baa23a755874a8d6039616123dcd..3c00e1e202c27adb6f7258ed4544ca4f346e6138 100644 (file)
@@ -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);