code: private void setPasswordFields() {
  
          m_dummyPasswordLabel.setContentMode(com.vaadin.v7.shared.ui.label.ContentMode.HTML);
  
          // ugly hack to prevent Firefox from asking user to save password on every click which causes the history token to change after editing a user
          String pwd = "<input type=\"password\" value=\"password\">";
          m_dummyPasswordLabel.setValue("<div style=\"display: none;\">" + pwd + pwd + "</div>");
  
          m_pw.hideOldPassword();
          m_pw.setHeaderVisible(false);
          if (OpenCms.getPasswordHandler() instanceof I_CmsPasswordSecurityEvaluator) {
              m_pw.setSecurityHint(
                  ((I_CmsPasswordSecurityEvaluator)OpenCms.getPasswordHandler()).getPasswordSecurityHint(
                      A_CmsUI.get().getLocale()));
          }
          m_pw.getOldPasswordField().setImmediate(true);
          m_pw.getPassword1Field().setImmediate(true);
          m_pw.getPassword2Field().setImmediate(true);
  
          m_pw.getPassword1Field().addTextChangeListener(new TextChangeListener() {
  
              private static final long serialVersionUID = 1L;
  
              public void textChange(TextChangeEvent event) {
  
                  checkSecurity(event.getText());
                  setEmailBox();
              }
          });
          m_pw.getPassword2Field().addTextChangeListener(new TextChangeListener() {
  
              private static final long serialVersionUID = 1L;
  
              public void textChange(TextChangeEvent event) {
  
                  checkSecurity(m_pw.getPassword1());
                  checkPasswordMatch(event.getText());
                  setEmailBox();
              }
          });
  
      }
docs: Sets the password fields.<p>