]> git.mxchange.org Git - jfinancials-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 21:35:04 +0000 (23:35 +0200)
- "detect" base URL and handle it over as mail templates may link to the website

src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebRequestBean.java

index 13388fc4bd0069aa7f6a45e24c92fdc91cac2b4c..d572894c444ad368b6a18adb3fae062496c788ba 100644 (file)
@@ -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);