Welcome Guest, Not a member yet? Register   Sign In
Form validation had to move custom validation in 2.0
#1

[eluser]matt2012[/eluser]
I had custom validation in MY_Form_validation a do_login that basically attempted to perform the login. I used it like this:

Code:
$CI->form_validation->set_rules('password', 'password', 'required|do_login');

in 2.0 this wasnt working so I had to move do_login to the relevant controller and change the line above to

Code:
$CI->form_validation->set_rules('password', 'password', 'required|callback_do_login');

I am using $CI here as this logic had been moved from the controller to a login helper

Not sure if its a bug or just a change thought i'd share.




Theme © iAndrew 2016 - Forum software by © MyBB