• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI 1.7 - Form_Validation

I have some problems with the dmiden’s fix if I use the lang: syntax

$val->set_rules('password', 'lang:auth_password', 'trim|required|min_length['.$this->_min_password.']|max_length['.$this->_max_password.']|matches[confirm_password]');
$val->set_rules('confirm_password', 'lang:auth_confirm_password', 'trim|required');

I get:

The Password field does not match the lang:auth_confirm_password field.

I have two elements on my form in a view

    <label for="email1">E-mail: </label>
    &lt;input type="text" name="email" id="email1" /&gt;
    <label for="confirmEmail1">Confirm E-mail: </label>
    &lt;input type="text" name="confirmEmail" id="confirmEmail1" /&gt;

I implemented the fixes mentioned above for line 666, but my form validation returns:

Quote:The E-mail field does not match the confirmEmail field.

Am I doing something incorrectly?

Edit: Shouldn't it say "does not match the Confirm E-Mail: field" ?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.