} else if (this.adminContactController.getFamilyName() == null) {
// ... and again
throw new NullPointerException("contactController.familyName is null"); //NOI18N
- } else if (this.contactController.getFamilyName().isEmpty()) {
+ } else if (this.adminContactController.getFamilyName().isEmpty()) {
// ... and again
throw new IllegalArgumentException("contactController.familyName is empty"); //NOI18N
} else if (this.adminContactController.getEmailAddress() == null) {
// Create new user instance
User user = new LoginUser();
-
// Set user name, CONFIRMED and INVISIBLE
user.setUserName(this.getUserName());
user.setUserMustChangePassword(this.getUserMustChangePassword());
user.setUserAccountStatus(UserAccountStatus.CONFIRMED);
user.setUserProfileMode(ProfileMode.INVISIBLE);
+ // Copy user locale
+ user.setUserLocale(this.localizationController.getLocale());
+
// Init instance
Contact userContact;