From 98ee51c9dcf2bf4ab3c259bbeab4e5d58a3269e0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 19 Apr 2016 14:35:20 +0200 Subject: [PATCH] Use other (new) exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../beans/user/AddressbookAdminUserWebSessionBean.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebSessionBean.java b/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebSessionBean.java index 7affb064..f5e5685e 100644 --- a/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebSessionBean.java +++ b/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebSessionBean.java @@ -16,6 +16,7 @@ */ package org.mxchange.addressbook.beans.user; +import java.text.MessageFormat; import java.util.Collections; import java.util.Date; import java.util.Iterator; @@ -47,7 +48,7 @@ import org.mxchange.jusercore.events.user.AdminUserAddedEvent; import org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException; import org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException; import org.mxchange.jusercore.exceptions.UserNotFoundException; -import org.mxchange.jusercore.exceptions.UserPasswordMismatchException; +import org.mxchange.jusercore.exceptions.UserPasswordRepeatMismatchException; import org.mxchange.jusercore.model.user.LoginUser; import org.mxchange.jusercore.model.user.User; import org.mxchange.jusercore.model.user.UserSessionBeanRemote; @@ -325,7 +326,7 @@ public class AddressbookAdminUserWebSessionBean implements AddressbookAdminUserW password = UserUtils.createRandomPassword(AddressbookUserWebSessionController.MINIMUM_PASSWORD_LENGTH); } else if (!this.isSamePasswordEntered()) { // Both passwords don't match - throw new FaceletException(new UserPasswordMismatchException(localUser)); + throw new FaceletException(new UserPasswordRepeatMismatchException(localUser)); } else { // Both match, so get it from this bean password = this.getUserPassword(); -- 2.39.5