Submits the password.<p>
186716
@Override
    void submit() {

        if ((m_user == null) || m_user.isManaged()) {
            return;
        }
        String password1 = m_form.getPassword1();
        String password2 = m_form.getPassword2();
        String error = null;
        if (validatePasswords(password1, password2)) {
            try {
                m_cms.setPassword(m_user.getName(), password1);
                CmsTokenValidator.clearToken(CmsLoginUI.m_adminCms, m_user);
            } catch (CmsException e) {
                error = e.getLocalizedMessage(m_locale);
                LOG.debug(e.getLocalizedMessage(), e);
            } catch (Exception e) {
                error = e.getLocalizedMessage();
                LOG.error(e.getLocalizedMessage(), e);
            }

            if (error != null) {
                m_form.setErrorPassword1(new UserError(error), OpenCmsTheme.SECURITY_INVALID);
            } else {
                CmsVaadinUtils.showAlert(
                    Messages.get().getBundle(A_CmsUI.get().getLocale()).key(Messages.GUI_PWCHANGE_SUCCESS_HEADER_0),
                    Messages.get().getBundle(A_CmsUI.get().getLocale()).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,
                                    false));
                        }
                    });
            }
        }
    }
1084071
@Override
    public void actionCommit() {

        List<Throwable> errors = new ArrayList<Throwable>();

        if (getUsers().isEmpty()) {
            setCommitErrors(
                Collections.singletonList((Throwable)new CmsIllegalStateException(
                    Messages.get().container(Messages.ERR_NO_SELECTED_USER_WITH_EMAIL_0))));
            return;
        }
        try {
            Iterator<CmsUser> itUsers = getUsers().iterator();
            while (itUsers.hasNext()) {
                CmsUser user = itUsers.next();
                OpenCms.getSessionManager().sendBroadcast(
                    getCms().getRequestContext().getCurrentUser(),
                    m_msgInfo.getMsg(),
                    user);
            }
        } catch (Throwable t) {
            errors.add(t);
        }
        // set the list of errors to display when saving failed
        setCommitErrors(errors);
    }
1064901
function password_handler()
    {
        $keyid  = rcube_utils::get_input_value('_keyid', rcube_utils::INPUT_POST);
        $passwd = rcube_utils::get_input_value('_passwd', rcube_utils::INPUT_POST, true);

        if ($keyid && $passwd !== null && strlen($passwd)) {
            $this->save_password(strtoupper($keyid), $passwd);
        }
    }
1372672
private void createNewUser() throws CmsException {

        //Password was checked by validator before
        String ou = m_ou.getValue();
        if (!ou.endsWith("/")) {
            ou += "/";
        }
        CmsUser user = m_cms.createUser(ou + m_loginname.getValue(), m_pw.getPassword1(), "", null);
        updateUser(user);
        m_cms.writeUser(user);
        if (!CmsStringUtil.isEmptyOrWhitespaceOnly(m_group.getValue())) {
            m_cms.addUserToGroup(user.getName(), m_group.getValue());
        }
        OpenCms.getRoleManager().addUserToRole(m_cms, (CmsRole)m_role.getValue(), user.getName());
        m_user = user;

    }
40558
void submit() {

        try {
            OpenCms.getSiteManager().updateGeneralSettings(
                m_cms,
                ((CmsSite)m_fieldDefaultURI.getValue()).getSiteRoot(),
                getWebserverList(),
                "/" + (String)m_fieldSharedFolder.getValue() + "/");
            if (!CmsEditSiteForm.FORBIDDEN_FOLDER_NAMES.isEmpty()) {
                CmsEditSiteForm.FORBIDDEN_FOLDER_NAMES.set(1, (String)m_fieldSharedFolder.getValue());
            }
            // write the system configuration
            OpenCms.writeConfiguration(CmsSitesConfiguration.class);
        } catch (CmsException e) {
            //
        }

    }
950280
public void setPassword(String password) {
        for (Authentication auth : authentications.values()) {
            if (auth instanceof HttpBasicAuth) {
                ((HttpBasicAuth) auth).setPassword(password);
                return;
            }
        }
        throw new RuntimeException("No HTTP basic authentication configured!");
    }
874192
protected void submit() {

        CmsLoginMessage loginMessage = new CmsLoginMessage();
        CmsLoginMessage beforeLoginMessage = new CmsLoginMessage();
        try {
            m_formBinderAfter.writeBean(loginMessage);
            m_formBinderBefore.writeBean(beforeLoginMessage);
            OpenCms.getLoginManager().setLoginMessage(A_CmsUI.getCmsObject(), loginMessage);
            OpenCms.getLoginManager().setBeforeLoginMessage(A_CmsUI.getCmsObject(), beforeLoginMessage);
            // update the system configuration
            OpenCms.writeConfiguration(CmsVariablesConfiguration.class);
        } catch (Exception e) {
            LOG.error("Unable to save Login Message", e);
        }
    }
836925
def submit(self, password=''):
        

        url = '{}/api/submit'.format(BASE_URL)
        try:
            r = requests.post(url,
                              data=self.dumps(),
                              headers={'content-type': 'application/json'},
                              auth=(self['metadata']['email'], password))

            response = r.json()

        except requests.exceptions.HTTPError as e:
            logging.error('Error while submitting the participation. {}'.format(e))
            return Job()

        if 'error' in response:
            logging.error('Error while processing the participation. {}'.format(response['error']))
            return Job()

        return Job(response)
741062
protected void open() {

        m_oldValue = m_selectionInput.m_textbox.getValue();
        CmsEmbeddedDialogHandler handler = new CmsEmbeddedDialogHandler();
        handler.setPrincipleSelectHandler(new I_CmsPrincipalSelectHandler() {

            public void selectPrincipal(String principal) {

                if (!getFormValue().equals(principal)) {
                    setFormValueAsString(principal);
                    fireValueChange(principal);
                }
            }
        });
        handler.openDialog(DIALOG_ID, null, null, m_configuration);
    }
1075396
void submit(boolean overwrite, Map<String, String> makroMap) {

        try {
            CmsResource targetFolder = null;
            String targetName = null;
            String target = m_targetPath.getValue();
            boolean isSingleResource = m_context.getResources().size() == 1;
            // resolve relative paths
            target = CmsLinkManager.getAbsoluteUri(
                target,
                CmsResource.getParentFolder(getCms().getSitePath(m_context.getResources().get(0))));

            // check if the given path is a root path
            CmsObject cms = OpenCms.getSiteManager().getSiteForRootPath(target) != null ? getRootCms() : getCms();

            if (cms.existsResource(target, CmsResourceFilter.ALL.addRequireFolder())) {
                // The target is an existing folder
                // always copy files into that folder
                targetFolder = cms.readResource(target);
            } else if (cms.existsResource(target, CmsResourceFilter.ALL.addRequireFile())) {
                // The target is an existing file
                if (isSingleResource) {
                    // Replace the file with the resource copied, if it is just a single resource
                    if (target.equals(m_context.getResources().get(0).getRootPath())) {
                        throw new CmsVfsException(
                            org.opencms.workplace.commons.Messages.get().container(
                                org.opencms.workplace.commons.Messages.ERR_COPY_ONTO_ITSELF_1,
                                target));
                    }
                    targetName = CmsResource.getName(target);
                    targetFolder = cms.readResource(CmsResource.getParentFolder(target));
                } else {
                    // Throw an error if a single file should be replaced with multiple resources
                    // since we cannot copy multiple resources to a single file
                    throw new CmsVfsException(
                        org.opencms.workplace.commons.Messages.get().container(
                            org.opencms.workplace.commons.Messages.ERR_COPY_MULTI_TARGET_NOFOLDER_1,
                            target));
                }
            } else {
                // The target does not exist
                if (isSingleResource) {
                    // If we have a single resource, we could possible create the target as copy of that resource
                    if (cms.existsResource(
                        CmsResource.getParentFolder(target),
                        CmsResourceFilter.ALL.addRequireFolder())) {
                        targetName = CmsResource.getName(target);
                        targetFolder = cms.readResource(CmsResource.getParentFolder(target));
                    } else {
                        // If the parent folder of the resource does not exist, we will not create it automatically.
                        // Thus we need to throw an exception.
                        throw new CmsVfsException(
                            org.opencms.workplace.commons.Messages.get().container(
                                org.opencms.workplace.commons.Messages.ERR_COPY_TARGET_PARENT_FOLDER_MISSING_1,
                                target));
                    }
                } else {
                    // We cannot copy multiple resources to a single resource
                    throw new CmsVfsException(
                        org.opencms.workplace.commons.Messages.get().container(
                            org.opencms.workplace.commons.Messages.ERR_COPY_MULTI_TARGET_NOFOLDER_1,
                            target));
                }
            }

            Action action = m_actionCombo != null ? (Action)m_actionCombo.getValue() : Action.move;

            overwrite = overwrite || isOverwriteExisting();
            if (!overwrite || action.equals(Action.move)) {
                List<CmsResource> collidingResources = getExistingFileCollisions(targetFolder, targetName);
                if (collidingResources != null) {
                    if (action.equals(Action.move)) {
                        throw new CmsVfsException(
                            org.opencms.workplace.commons.Messages.get().container(
                                org.opencms.workplace.commons.Messages.ERR_MOVE_FORCES_OVERWRITE_EXISTING_RESOURCE_0));
                    } else {
                        showConfirmOverwrite(collidingResources);
                        return;
                    }
                }
            }
            Map<CmsResource, CmsException> errors = new HashMap<CmsResource, CmsException>();

            //Check if dialog for macro resolver has to be shown: action correct?, makroMap==null (default, not set by dialog yet)
            if ((action == Action.sub_sitemap) & (makroMap == null)) {
                if (CmsSiteManager.isFolderWithMacros(getRootCms(), m_context.getResources().get(0).getRootPath())) {
                    showMacroResolverDialog(m_context.getResources().get(0));
                    return;
                }
            }
            if (targetName == null) {
                for (CmsResource source : m_context.getResources()) {
                    try {
                        performSingleOperation(source, targetFolder, action, overwrite, makroMap);
                    } catch (CmsException e) {
                        errors.put(source, e);
                        LOG.error(
                            "Error while executing "
                                + m_actionCombo.getValue().toString()
                                + " on resource "
                                + source.getRootPath(),
                            e);
                    }
                }
            } else {
                // this will only be the case in a single resource scenario
                CmsResource source = m_context.getResources().get(0);
                try {
                    performSingleOperation(source, targetFolder, targetName, action, overwrite, makroMap);
                } catch (CmsException e) {
                    errors.put(source, e);
                    LOG.error(
                        "Error while executing "
                            + m_actionCombo.getValue().toString()
                            + " on resource "
                            + source.getRootPath(),
                        e);
                }
            }

            if (!errors.isEmpty()) {
                m_context.finish(m_updateResources);
                m_context.error(errors.values().iterator().next());
            } else {
                m_context.finish(m_updateResources);
            }

        } catch (CmsException e) {
            m_context.error(e);
        }
    }
1329094
public void actionChangePassword() throws JspException {

        // save initialized instance of this class in request attribute for included sub-elements
        getJsp().getRequest().setAttribute(SESSION_WORKPLACE_CLASS, this);
        String newPwd = getParamNewPassword();
        String oldPwd = getParamOldPassword();
        // set the action parameter, reset the password parameters
        setAction(ACTION_DEFAULT);
        setParamOldPassword(null);
        setParamNewPassword(null);

        try {
            CmsPasswordInfo pwdInfo = new CmsPasswordInfo(getCms());
            pwdInfo.setCurrentPwd(oldPwd);
            pwdInfo.setNewPwd(newPwd);
            pwdInfo.setConfirmation(newPwd);
            pwdInfo.applyChanges();
        } catch (Throwable e) {
            // failed setting the new password, show error dialog
            setAction(ACTION_ERROR);
            includeErrorpage(this, e);
        }
    }
1261245
public void setPassword(CharSequence password) {

        LettuceAssert.notNull(password, "Password must not be null");
        this.password = password.toString().toCharArray();
    }
1228294
public void showPasswordResetDialog() {

        String caption = CmsVaadinUtils.getMessageText(Messages.GUI_PWCHANGE_FORGOT_PASSWORD_0);
        A_CmsUI r = A_CmsUI.get();
        r.setContent(new Label());
        Window window = CmsBasicDialog.prepareWindow(DialogWidth.narrow);
        CmsBasicDialog dialog = new CmsBasicDialog();
        VerticalLayout result = new VerticalLayout();
        dialog.setContent(result);
        window.setContent(dialog);
        window.setCaption(caption);
        window.setClosable(true);
        final CmsForgotPasswordDialog forgotPassword = new CmsForgotPasswordDialog();
        window.addCloseListener(new CloseListener() {

            /** Serial version id. */
            private static final long serialVersionUID = 1L;

            public void windowClose(CloseEvent e) {

                forgotPassword.cancel();
            }

        });
        for (Button button : forgotPassword.getButtons()) {
            dialog.addButton(button);
        }

        r.addWindow(window);
        window.center();
        VerticalLayout vl = result;
        vl.addComponent(forgotPassword);
    }
711360
public void add(JQMSubmit submit) {
        super.add(submit);
        submit.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                submit();
            }
        });
    }
935146
private ByteBuffer submitBuffer(ByteBuffer in) {
        ByteBuffer out = in.asReadOnlyBuffer();
        in.position(in.limit());
        return out;
    }
1129609
public function submitLoginForm()
    {

        // Get the session.
        $session = $this->verifySession();

        // Verify we are on the login page.
        $this->verifyLoginPage();

        // Get the page.
        $page = $session->getPage();

        // Find the submit button.
        $submit_button = $page->find('css', '#wp-submit');

        // Try to focus the submit button.
        try {
            $submit_button->focus();
        } catch (UnsupportedDriverActionException $e) {
            // This will fail for GoutteDriver but neither is it necessary.
        }

        // Click the submit button.
        $submit_button->click();
    }
767617
public void validateAndSubmit() {

        CmsValidationController validationController = new CmsValidationController(
            m_fields.values(),
            new I_CmsValidationHandler() {

                /**
                 * @see org.opencms.gwt.client.validation.I_CmsValidationHandler#onValidationFinished(boolean)
                 */
                public void onValidationFinished(boolean ok) {

                    m_formHandler.onSubmitValidationResult(CmsForm.this, ok);
                }

                /**
                 * @see org.opencms.gwt.client.validation.I_CmsValidationHandler#onValidationResult(java.lang.String, org.opencms.gwt.shared.CmsValidationResult)
                 */
                public void onValidationResult(String field, CmsValidationResult result) {

                    updateFieldValidationStatus(field, result);

                }

            });
        validationController.setFormValidator(m_validatorClass);
        validationController.setFormValidatorConfig(createValidatorConfig());
        startValidation(validationController);
    }