php - Password double check in Zend Framework -


I use the Zend Framework, and I only have two elements: Email and Password

I have two password elements to do this so that the user has to type the password twice. The code should be checked whether the user has typed the exact same password in each password element. Just as a double inquiry, the code below has two elements. But without double check

  $ form = new Zend_Form (); $ Form & gt; SetAction ('action = certificateSettings?'); $ Form & gt; Setview (see $ this- & gt;); $ Email = $ form- & gt; Create Element ('Text', 'License E-mail') - & gt; Set Labels ('Admin Email') - & gt; Set Val ($ License Payment ['Email']) $ pass = $ form- & gt; ('Text', 'license pin') - & gt; Set Labels ('Admin Password') - & gt; Set Value ($ License Payment ['Password']) - & gt; Setupard (); $ Form- & gt; Admittal ($ email) - & gt; Adelement ($ pass);  

How can I apply this password to double checks? Where should this double check be verified?

use the same validator as Zend


Comments