]> git.mxchange.org Git - juser-login-core.git/blobdiff - src/org/mxchange/jusercore/container/login/UserLoginContainer.java
Don't do these checks on login phase as they are only available after login
[juser-login-core.git] / src / org / mxchange / jusercore / container / login / UserLoginContainer.java
index 84df915b5b729bf0308152af77c7261bba1b0e01..f54a3ba0a4496e7e000c991b2d9d7a6d345b2af0 100644 (file)
@@ -16,7 +16,6 @@
  */
 package org.mxchange.jusercore.container.login;
 
-import java.text.MessageFormat;
 import org.mxchange.jusercore.model.user.User;
 
 /**
@@ -52,21 +51,6 @@ public class UserLoginContainer implements LoginContainer {
                if (null == user) {
                        // Throw NPE
                        throw new NullPointerException("user is null"); //NOI18N
-               } else if (user.getUserId() == null) {
-                       // Throw NPE again ..
-                       throw new NullPointerException("user.userId is null"); //NOI18N
-               } else if (user.getUserId() < 1) {
-                       // Invalid id number
-                       throw new IllegalArgumentException(MessageFormat.format("user.userId={0} is not valid", user.getUserId())); //NOI18N
-               } else if (user.getUserContact() == null) {
-                       // Throw NPE again ...
-                       throw new NullPointerException("user.userContact is null"); //NOI18N
-               } else if (user.getUserContact().getContactId() == null) {
-                       // Throw NPE again ...
-                       throw new NullPointerException("user.userContact.contactId is null"); //NOI18N
-               } else if (user.getUserContact().getContactId() < 1) {
-                       // Invalid id number
-                       throw new IllegalArgumentException(MessageFormat.format("user.userContact.contactId={0} is not valid", user.getUserContact().getContactId())); //NOI18N
                } else if (null == userPassword) {
                        // Throw NPE again
                        throw new NullPointerException("userPassword is null"); //NOI18N