]> git.mxchange.org Git - jjobs-war.git/commitdiff
Use other (new) exception
authorRoland Häder <roland@mxchange.org>
Tue, 19 Apr 2016 12:35:20 +0000 (14:35 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 19 Apr 2016 18:20:39 +0000 (20:20 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebSessionBean.java

index 2060923a7d617b22a0a83bbced05728469866acd..428750cb09e331fa84030bfd1eecbb283ca26320 100644 (file)
@@ -16,6 +16,7 @@
  */
 package org.mxchange.jjobs.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 JobsAdminUserWebSessionBean implements JobsAdminUserWebSessionContr
                        password = UserUtils.createRandomPassword(JobsUserWebSessionController.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();