code: public boolean isPasswordReset(CmsObject cms, CmsUser user) {
  
          if (user.isManaged() || user.isWebuser() || OpenCms.getDefaultUsers().isDefaultUser(user.getName())) {
              return false;
          }
          if (user.getAdditionalInfo().get(CmsUserSettings.ADDITIONAL_INFO_PASSWORD_RESET) != null) {
              return true;
          }
          return false;
      }
docs: Checks if password has to be reset.<p>
  
  @param cms CmsObject
  @param user CmsUser
  @return true if password should be reset