Hi,
if you use the crypto SHA1 attention to the confirmation line, place the code | sha1 before the function matches [xxx] if the code does not work ???
codeIgniter 3.0.6 http://bforbyoos.com application BforBYOOS
` //if this is a new account require a password, or if they have entered either a password or a password confirmation
if ($this->input->post('password') != '' || $this->input->post('confirm') != '' || !$id)
{
$this->form_validation->set_rules('password', 'lang:password', 'required|min_length[6]|sha1');
$this->form_validation->set_rules('confirm', 'lang:confirm_password', 'required|sha1|matches[password]');
}`
P.S updated codeigniter 3.0.6 modification is correct. the 26 march 2016
Gabriel BYOOS
if you use the crypto SHA1 attention to the confirmation line, place the code | sha1 before the function matches [xxx] if the code does not work ???
codeIgniter 3.0.6 http://bforbyoos.com application BforBYOOS
` //if this is a new account require a password, or if they have entered either a password or a password confirmation
if ($this->input->post('password') != '' || $this->input->post('confirm') != '' || !$id)
{
$this->form_validation->set_rules('password', 'lang:password', 'required|min_length[6]|sha1');
$this->form_validation->set_rules('confirm', 'lang:confirm_password', 'required|sha1|matches[password]');
}`
P.S updated codeigniter 3.0.6 modification is correct. the 26 march 2016
Gabriel BYOOS