import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
import org.mxchange.pizzaapplication.beans.BasePizzaController;
import org.mxchange.pizzaapplication.beans.contact.PizzaContactWebSessionController;
+import org.mxchange.pizzaapplication.beans.localization.PizzaLocalizationSessionController;
import org.mxchange.pizzaapplication.beans.login.PizzaUserLoginWebSessionController;
import org.mxchange.pizzaapplication.beans.register.PizzaUserRegisterWebSessionController;
@Inject
private PizzaContactWebSessionController contactController;
+ /**
+ * Localization controller
+ */
+ @Inject
+ private PizzaLocalizationSessionController 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());