import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
+import org.mxchange.jjobs.beans.contact.JobsContactWebSessionController;
import org.mxchange.jjobs.beans.user.JobsUserWebSessionController;
import org.mxchange.jusercore.events.registration.RegisteredUserEvent;
import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
*/
private static final long serialVersionUID = 47_828_986_719_691_592L;
+ /**
+ * User controller
+ */
+ @Inject
+ private JobsContactWebSessionController contactController;
+
/**
* Reemote register session bean
*/
} else if (this.userController.isUserNameRegistered(user)) {
// User name is already used
throw new FaceletException(new UserNameAlreadyRegisteredException(user));
- } else if (this.userController.isEmailAddressRegistered(user)) {
+ } else if (this.contactController.isEmailAddressRegistered(user.getUserContact())) {
// Email address has already been taken
throw new FaceletException(new EmailAddressAlreadyRegisteredException(user));
- } else if (!this.userController.isSameEmailAddressEntered()) {
+ } else if (!this.contactController.isSameEmailAddressEntered()) {
// Not same email address entered
- throw new FaceletException(new DataRepeatMismatchException(MessageFormat.format("Email addresses not matching: {0} != {1}", this.userController.getEmailAddress(), this.userController.getEmailAddressRepeat()))); //NOI18N
+ throw new FaceletException(new DataRepeatMismatchException(MessageFormat.format("Email addresses not matching: {0} != {1}", this.contactController.getEmailAddress(), this.contactController.getEmailAddressRepeat()))); //NOI18N
} else if (!this.userController.isSamePasswordEntered()) {
// Not same password entered
throw new FaceletException(new DataRepeatMismatchException("Passwords not matching.")); //NOI18N
*/
private final UserSessionBeanRemote userBean;
+ /**
+ * Regular user controller
+ */
+ @Inject
+ private JobsUserWebSessionController userController;
+
/**
* A list of all user profiles
*/
*/
private String userPasswordRepeat;
- /**
-<<<<<<< HEAD:src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebSessionBean.java
- * ZIP code
- */
- private Integer zipCode;
-
- /**
- * Regular user controller
- */
- @Inject
- private JobsUserWebSessionController userController;
-
/**
* Default constructor
*/