@Override
public String doFinishRegistration () {
// Get user instance
- User user = this.userController.createUserInstance();
+ User user = this.userController.createUserInstance(true);
// Is the user already used?
if (null == user) {
@Override
public String doRegisterMultiPage1 () {
// Get user instance
- User user = this.userController.createUserInstance();
+ User user = this.userController.createUserInstance(false);
// First check if user is not null and user name is not used + if same email address is entered
if (null == user) {
import java.io.Serializable;
import java.util.List;
import org.mxchange.jcontacts.contact.Contact;
-import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
import org.mxchange.jusercore.events.confirmation.UserConfirmedAccountEvent;
import org.mxchange.jusercore.events.login.UserLoggedInEvent;
import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
*/
public static final Integer MINIMUM_PASSWORD_LENGTH = 5;
- /**
- * Observes events being fired when an administrator has added a new
- * contact.
- * <p>
- * @param event Event being fired
- */
- void afterAdminAddedContact (final AdminAddedContactEvent event);
-
/**
* Event observer for newly added users by adminstrator
* <p>
/**
* Creates an instance from all properties
* <p>
+ * @param createContactData Whether contact data should be created
+ * <p>
* @return A user instance
*/
- User createUserInstance ();
+ User createUserInstance (final boolean createContactData);
/**
* Creates a user instance for login phase