code: void submit() {
  
          String password1 = m_form.getPassword1();
          String password2 = m_form.getPassword2();
  
          if (validatePasswords(password1, password2)) {
              String oldPassword = m_form.getOldPassword();
              boolean error = false;
  
              if (oldPassword.equals(password1)) {
                  m_form.setErrorPassword1(
                      new UserError(
                          Messages.get().getBundle(m_locale).key(Messages.GUI_PWCHANGE_DIFFERENT_PASSWORD_REQUIRED_0)),
                      OpenCmsTheme.SECURITY_INVALID);
                  error = true;
              } else {
                  try {
                      m_cms.setPassword(m_user.getName(), oldPassword, password1);
                  } catch (CmsException e) {
                      m_form.setErrorOldPassword(
                          new UserError(e.getLocalizedMessage(m_locale)),
                          OpenCmsTheme.SECURITY_INVALID);
                      error = true;
                      LOG.debug(e.getLocalizedMessage(), e);
                  }
              }
  
              if (!error) {
                  if (m_context != null) {
                      close();
                  } else {
                      // this will be the case for forced password changes after login
                      CmsVaadinUtils.showAlert(
                          Messages.get().getBundle(m_locale).key(Messages.GUI_PWCHANGE_SUCCESS_HEADER_0),
                          Messages.get().getBundle(m_locale).key(Messages.GUI_PWCHANGE_GUI_PWCHANGE_SUCCESS_CONTENT_0),
                          new Runnable() {
  
                              public void run() {
  
                                  A_CmsUI.get().getPage().setLocation(
                                      OpenCms.getLinkManager().substituteLinkForUnknownTarget(
                                          CmsLoginUI.m_adminCms,
                                          CmsWorkplaceLoginHandler.LOGIN_HANDLER
                                              + "?ocUname="
                                              + m_user.getSimpleName()
                                              + "&ocOuFqn="
                                              + m_user.getOuFqn(),
                                          false));
                              }
  
                          });
                  }
              }
          }
      }
docs: Submits the password change.<p>