]> git.mxchange.org Git - addressbook-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 23 Jun 2017 22:54:07 +0000 (00:54 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 23 Jun 2017 22:54:50 +0000 (00:54 +0200)
- no need for checking email address here, user-name is enough

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/addressbook/beans/user/AddressbookUserWebSessionBean.java

index 33495b9ca38621cfd56e22be616f3d7ea5315501..7607f65d359bdb381744f99596e78596a2509e32 100644 (file)
@@ -912,9 +912,6 @@ public class AddressbookUserWebSessionBean extends BaseAddressbookController imp
                if (this.userNameList.contains(user.getUserName())) {
                        // Abort here
                        throw new IllegalArgumentException(MessageFormat.format("User name {0} already added.", user.getUserName())); //NOI18N
-               } else if (this.contactController.isEmailAddressRegistered(user.getUserContact())) {
-                       // Already added
-                       throw new IllegalArgumentException(MessageFormat.format("Email address {0} already added.", user.getUserContact().getContactEmailAddress())); //NOI18N
                }
 
                // Add user name