import javax.naming.NamingException;
import org.mxchange.addressbook.beans.BaseAddressbookController;
import org.mxchange.addressbook.beans.contact.AddressbookContactWebSessionController;
+import org.mxchange.addressbook.beans.localization.AddressbookLocalizationSessionController;
import org.mxchange.addressbook.beans.login.AddressbookUserLoginWebSessionController;
import org.mxchange.addressbook.beans.register.AddressbookUserRegisterWebSessionController;
import org.mxchange.jcontacts.contact.Contact;
@Inject
private AddressbookContactWebSessionController contactController;
+ /**
+ * Localization controller
+ */
+ @Inject
+ private AddressbookLocalizationSessionController localizationController;
+
/**
* Login bean (controller)
*/
this.setUserPasswordRepeat(randomPassword);
}
- // Set user name and mode
+ // Set local, user name and mode
+ user.setUserLocale(this.localizationController.getLocale());
user.setUserName(this.getUserName());
user.setUserProfileMode(this.getUserProfileMode());