/**
  * @see \Zend\Form\Form::prepare()
  */
 public function prepare()
 {
     if ($this->isPrepared) {
         return $this;
     }
     $oHtmlAttrEscaper = new \Zend\View\Helper\EscapeHtmlAttr();
     $this->add(array('name' => 'new_auth_access_credential', 'attributes' => array('id' => 'auth_access_credential', 'type' => 'password', 'required' => true, 'class' => 'required maxLength:32', 'autocomplete' => 'off', 'data-behavior' => 'Form.PasswordStrength'), 'options' => array('label' => 'credential')))->add(array('name' => 'auth_access_credential_confirm', 'attributes' => array('type' => 'password', 'class' => 'required validate-match matchInput:\'new_auth_access_credential\' matchName:\'' . $oHtmlAttrEscaper('"' . $this->getTranslator()->translate('credential') . '"') . '\'', 'required' => true, 'autocomplete' => 'off'), 'options' => array('label' => 'confirm_credential')))->add(array('name' => 'submit', 'attributes' => array('type' => 'submit', 'value' => 'change_credential', 'class' => 'btn-large btn-primary'), 'options' => array('twb' => array('formAction' => true))));
     return parent::prepare();
 }
 /**
  * @see \Zend\Form\Form::prepare()
  */
 public function prepare()
 {
     if ($this->isPrepared) {
         return $this;
     }
     $oHtmlAttrEscaper = new \Zend\View\Helper\EscapeHtmlAttr();
     $this->add(array('name' => 'auth_access_email_identity', 'type' => 'email', 'attributes' => array('required' => true, 'autocomplete' => 'off', 'autofocus' => 'autofocus', 'class' => 'required validate-email emailIsAvailable', 'onchange' => 'oController.checkEmailIdentityAvailability(document.id(this));'), 'options' => array('label' => 'email')))->add(array('name' => 'auth_access_username_identity', 'attributes' => array('required' => true, 'autocomplete' => 'off', 'class' => 'required validate-nospace maxLength:255 usernameIsAvailable', 'onchange' => 'oController.checkUsernameIdentityAvailability(document.id(this));'), 'options' => array('label' => 'username')))->add(array('name' => 'auth_access_credential', 'attributes' => array('id' => 'auth_access_credential', 'type' => 'password', 'required' => true, 'class' => 'required maxLength:32', 'autocomplete' => 'off', 'data-behavior' => 'Form.PasswordStrength'), 'options' => array('label' => 'credential')))->add(array('name' => 'auth_access_credential_confirm', 'attributes' => array('type' => 'password', 'class' => 'required validate-match matchInput:\'auth_access_credential\' matchName:\'' . $oHtmlAttrEscaper('"' . $this->getTranslator()->translate('credential') . '"') . '\'', 'required' => true, 'autocomplete' => 'off'), 'options' => array('label' => 'confirm_credential')))->add(array('name' => 'auth_access_captcha', 'type' => 'Zend\\Form\\Element\\Captcha', 'attributes' => array('required' => true, 'placeholder' => sprintf($this->getTranslator()->translate('enter_the_x_characters'), $this->getCaptcha()->getWordlen()), 'autocomplete' => 'off'), 'options' => array('label' => 'im_not_a_robot', 'captcha' => $this->getCaptcha(), 'class' => 'required')))->add(array('name' => 'submit', 'attributes' => array('type' => 'submit', 'value' => 'register', 'class' => 'btn-large btn-primary', 'disabled' => true), 'options' => array('ignore' => true, 'twb' => array('formAction' => true))));
     return parent::prepare();
 }