Here is the part in the form:
<li>
<label for="email">
Email:*
<span class="error">[[+fi.error.email]]</span>
</label>
<input type="text" name="email:email:required" id="email" value="[[+fi.email]]" />
</li>
<li>
<label for="email2">
Re Enter Email:*
<span class="error">[[+fi.error.email2]]</span>
</label>
<input type="text" name="email2:email_confirm=`email` id="email2" value="[[+fi.email2]]" />
</li>
here is the code from the files:
This is exactly the same as the password part, except i changed the word password to email:
public function email_confirm($key,$value,$param = 'email_confirm') {
if (empty($value)) return $this->modx->lexicon('formit.email_not_confirmed');
if ($this->fields[$param] != $value) {
return $this->_getErrorMessage($key,'vTextEmailConfirm','formit.email_dont_match',array(
'field' => $key,
'email' => $value,
'email_confirm' => $this->fields[$param],
));
}
return true;
}