Tries to change the password using the data entered by the user.<p>
969301
public void changePassword() {

        final String oldPassword = m_oldPassword.getFormValueAsString();
        final String newPassword1 = m_newPassword1.getFormValueAsString();
        final String newPassword2 = m_newPassword2.getFormValueAsString();

        CmsRpcAction<String> action = new CmsRpcAction<String>() {

            @Override
            public void execute() {

                start(0, true);
                CmsCoreProvider.getService().changePassword(oldPassword, newPassword1, newPassword2, this);
            }

            @Override
            public void onResponse(String result) {

                stop(false);
                if (result == null) {
                    m_finishAction.run();
                } else {
                    showError(result);
                }
            }
        };
        action.execute();
    }
1077493
public void setPasswordHandler(I_CmsPasswordHandler passwordHandler) {

        m_passwordHandler = passwordHandler;
        if (CmsLog.INIT.isInfoEnabled()) {
            CmsLog.INIT.info(
                Messages.get().getBundle().key(
                    Messages.INIT_PWD_HANDLER_SUCCESS_1,
                    passwordHandler.getClass().getName()));
        }
    }
428454
function onChangePassword() {
  var password = $('#changed-password').val();
  activeUser().updatePassword(password).then(function() {
    refreshUserData();
    alertSuccess('Password changed!');
  }, onAuthError);
}
1261245
public void setPassword(CharSequence password) {

        LettuceAssert.notNull(password, "Password must not be null");
        this.password = password.toString().toCharArray();
    }
1136257
public void setPassword(String username, String newPassword) throws CmsException {

        m_securityManager.setPassword(m_context, username, newPassword);
    }
424151
@Trivial
    public static void erasePassword(@Sensitive byte[] pwdBytes) {
        if (pwdBytes != null) {
            for (int i = 0; i < pwdBytes.length; i++) {
                pwdBytes[i] = 0x00;
            }
        }

    }
984463
public void createUser(User user, String password){
        ProtocolHeader header = new ProtocolHeader();
        header.setType(ProtocolType.CreateUser);
        byte[] secret = null;
        if(password != null && ! password.isEmpty()){
            secret = ObfuscatUtil.base64Encode(password.getBytes());
        }
        CreateUserProtocol p = new CreateUserProtocol(user, secret);

        connection.submitRequest(header, p, null);
    }
1002004
@Help(help = "Change a user's password")
  public void changePassword(String oldPassword, String newPassword) throws SDKException {
    HashMap<String, String> requestBody = new HashMap<>();
    requestBody.put("old_pwd", oldPassword);
    requestBody.put("new_pwd", newPassword);

    requestPut("changepwd", requestBody);
  }
570070
public function changePassword() {
    $this->requireTransaction();
    $session = $this->getSession();
    $permissionManager = $this->getPermissionManager();
    $request = $this->getRequest();
    $response = $this->getResponse();

    // load model
    $authUser = $this->principalFactory->getUser($session->getAuthUser());
    if ($authUser) {
      // add permissions for this operation
      $oidStr = $authUser->getOID()->__toString();
      $this->tempPermissions[] = $permissionManager->addTempPermission($oidStr, '', PersistenceAction::READ);
      $this->tempPermissions[] = $permissionManager->addTempPermission($oidStr.'.password', '', PersistenceAction::UPDATE);

      $this->changePasswordImpl($authUser, $request->getValue('oldpassword'),
          $request->getValue('newpassword1'), $request->getValue('newpassword2'));
    }
    // success
    $response->setAction('ok');
  }
183084
private void updateUser(CmsUser user) {

        setUserPasswordStatus(user, m_forceResetPassword.getValue().booleanValue());
        user.setDescription(m_description.getValue());
        user.setManaged(!m_selfmanagement.getValue().booleanValue());
        user.setEnabled(m_enabled.getValue().booleanValue());
        m_userdata.submit(user, m_cms, new Runnable() {

            public void run() {
                //
            }
        }, true);
    }
1340891
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));
                            }

                        });
                }
            }
        }
    }
1183610
public void checkPassword(String value) {

        if (!value.equals(password)) {
            throw Error.error(ErrorCode.X_28000);
        }
    }
598609
public void changeNFSUserPassword(String password) throws HostConfigFault, NotFound, RuntimeFault, RemoteException {
        getVimService().changeNFSUserPassword(getMOR(), password);
    }
1230593
def changeLocalUserPassword(self, login, user, password):
    
    self.send_changeLocalUserPassword(login, user, password)
    self.recv_changeLocalUserPassword()
786202
void checkSecurity(String password) {

        I_CmsPasswordHandler handler = OpenCms.getPasswordHandler();
        try {
            handler.validatePassword(password);
            if (handler instanceof I_CmsPasswordSecurityEvaluator) {
                SecurityLevel level = ((I_CmsPasswordSecurityEvaluator)handler).evaluatePasswordSecurity(password);
                m_pw.setErrorPassword1(null, OpenCmsTheme.SECURITY + "-" + level.name());
            } else {
                m_pw.setErrorPassword1(null, OpenCmsTheme.SECURITY_STRONG);
            }
        } catch (CmsSecurityException e) {
            m_pw.setErrorPassword1(
                new UserError(e.getLocalizedMessage(A_CmsUI.get().getLocale())),
                OpenCmsTheme.SECURITY_INVALID);
        }
        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_pw.getPassword2())) {
            showPasswordMatchError(!password.equals(m_pw.getPassword2()));
        }
    }
240434
public function changePasswordAction()
    {
        if ($this->changePasswordSnippets) {
            $params = $this->_processParameters($this->changePasswordParameters);

            $this->addSnippets($this->changePasswordSnippets, $params);
        }
    }
346684
protected static void sendMail(
        CmsObject cms,
        String password,
        CmsUser user,
        boolean newUser,
        boolean changePassword) {

        sendMail(cms, password, user, user.getOuFqn(), newUser, changePassword);
    }