From: Roland Häder Date: Tue, 19 Apr 2016 12:35:20 +0000 (+0200) Subject: Use other (new) exception X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3a790571ffd6e40be0ca4506e8c9f7e4b21ac3d1;p=pizzaservice-war.git Use other (new) exception Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebSessionBean.java b/src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebSessionBean.java index e82dd716..40e575f8 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebSessionBean.java @@ -16,6 +16,7 @@ */ package org.mxchange.pizzaapplication.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 PizzaAdminUserWebSessionBean implements PizzaAdminUserWebSessionCon password = UserUtils.createRandomPassword(PizzaUserWebSessionController.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();