From: Roland Häder Date: Tue, 2 Aug 2016 08:42:08 +0000 (+0200) Subject: Continued a bit: (please cherry-pick) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cda73f3b79817680a4face581ced27d43d25e55e;p=pizzaservice-war.git Continued a bit: (please cherry-pick) - sorted members - cleared also new flag in clear() method - set flag before the user instance is being submitted to EJB --- diff --git a/src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java b/src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java index 14c5ca59..48c4bcba 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java @@ -351,8 +351,9 @@ public class PizzaAdminUserWebRequestBean extends BasePizzaController implements encryptedPassword = UserUtils.encryptPassword(this.getUserPassword()); } - // Set user name + // Set user name and flag user.setUserName(this.getUserName()); + user.setUserMustChangePassword(this.getUserMustChangePassword()); // Is a password set? if (encryptedPassword != null) { @@ -371,23 +372,23 @@ public class PizzaAdminUserWebRequestBean extends BasePizzaController implements } @Override - public String getUserName () { - return this.userName; + public Boolean getUserMustChangePassword () { + return this.userMustChangePassword; } @Override - public void setUserName (final String userName) { - this.userName = userName; + public void setUserMustChangePassword (final Boolean userMustChangePassword) { + this.userMustChangePassword = userMustChangePassword; } @Override - public Boolean getUserMustChangePassword () { - return this.userMustChangePassword; + public String getUserName () { + return this.userName; } @Override - public void setUserMustChangePassword (final Boolean userMustChangePassword) { - this.userMustChangePassword = userMustChangePassword; + public void setUserName (final String userName) { + this.userName = userName; } @Override @@ -426,6 +427,7 @@ public class PizzaAdminUserWebRequestBean extends BasePizzaController implements this.setUserName(null); this.setUserPassword(null); this.setUserPasswordRepeat(null); + this.setUserMustChangePassword(null); } /**