cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roberto Marra" <rma...@montefiore.ch>
Subject password validation in CFORM
Date Tue, 03 May 2005 12:44:23 GMT
Hi all,
Im checking some validation example & I found this example:

   <fd:field id="password" required="true">
      <fd:label>Password:</fd:label>
      <fd:datatype base="string"/>
      <fd:validation>
        <fd:length min="5" max="20"/>
      </fd:validation>
    </fd:field>

    <fd:field id="confirmPassword" required="true">
      <fd:label>Re-enter password:</fd:label>
      <fd:datatype base="string"/>
      <fd:validation>
        <fd:assert test="password = confirmPassword">
          <fd:failmessage>The two passwords are not equal.</fd:failmessage>
        </fd:assert>
      </fd:validation>
    </fd:field>but the <fd:assert....> is not very clear for me. I understand

when password is equal confirmPassword then show the failmessage... is that right or there
are some mistake?

Regards
Roberto





Mime
View raw message