this.clearOldAccountRequests();
AbstractUser user = (AbstractUser) userManager.getUser(username);
if(user instanceof User){
((User) user).setLastPasswordChange(new Date());
((User) user).setDisabled(false);
<BUG>}
this.loadUserDefaultRoles(user);
this.loadUserDefaultGroups(user);</BUG>
user.setPassword(password);
userManager.updateUser(user);

this.clearOldAccountRequests();
AbstractUser user = (AbstractUser) userManager.getUser(username);
if(user instanceof User){
((User) user).setLastPasswordChange(new Date());
((User) user).setDisabled(false);
}
this.addDefaultAuthorities(user);
user.setPassword(password);
userManager.updateUser(user);
