From: Roland Häder Date: Sun, 25 Sep 2022 15:32:59 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=83d65aea18cae832742c69670c5a82539cebc55e;p=jfinancials-war.git Please cherry-pick: - alsways use full-qualified access, means: `this.foo` and not just `foo` Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jfinancials/beans/user/FinancialsAdminUserWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/user/FinancialsAdminUserWebRequestBean.java index 86efca4f..3b47906e 100644 --- a/src/java/org/mxchange/jfinancials/beans/user/FinancialsAdminUserWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/user/FinancialsAdminUserWebRequestBean.java @@ -237,7 +237,7 @@ public class FinancialsAdminUserWebRequestBean extends BaseFinancialsBean implem // Is the user name or email address used already? // @TODO Add password length check - if ((this.featureController.isFeatureEnabled("user_login_require_user_name")) && (userListController.isUserNameRegistered(newUser))) { + if ((this.featureController.isFeatureEnabled("user_login_require_user_name")) && (this.userListController.isUserNameRegistered(newUser))) { // User name is already used throw new FacesException(new UserNameAlreadyRegisteredException(newUser)); } else if ((this.getContact() == null) && (this.contactController.isEmailAddressRegistered(newUser.getUserContact()))) { @@ -272,7 +272,7 @@ public class FinancialsAdminUserWebRequestBean extends BaseFinancialsBean implem // Now, that all is set, call EJB if (this.getContact() instanceof Contact) { // Fire event - userLinkedEvent.fire(new AdminLinkedUserEvent(updatedUser)); + this.userLinkedEvent.fire(new AdminLinkedUserEvent(updatedUser)); } else { // Fire event this.addedUserEvent.fire(new AdminAddedUserEvent(updatedUser)); @@ -378,7 +378,7 @@ public class FinancialsAdminUserWebRequestBean extends BaseFinancialsBean implem // Not same password entered this.showFacesMessage("form_edit_user:userPassword", "ADMIN_USER_PASSWORD_REPEAT_DIFFERENT", FacesMessage.SEVERITY_INFO); //NOI18N return; - } else if ((!Objects.equals(user.getUserName(), this.getUserName())) && (userBean.ifUserNameExists(this.getUserName()))) { + } else if ((!Objects.equals(user.getUserName(), this.getUserName())) && (this.userBean.ifUserNameExists(this.getUserName()))) { // Clear all fields this.clear();