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) {
}
@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
this.setUserName(null);
this.setUserPassword(null);
this.setUserPasswordRepeat(null);
+ this.setUserMustChangePassword(null);
}
/**