Crazy with callbacks |
oh, instead of this in the auth::username_check():
return ($query->num_rows() > 0); You probably need: return ($query->num_rows() == 0); because if there were NO results, it means the username was NOT taken and the rule should pass (true). It should fail (false) if there are any results because the username already exists.
(06-10-2015, 05:37 AM)StratoKyke Wrote: I'm going crazy,Why do you return before form validation set message use ???
NexoPOS 2.6.2 available on CodeCanyon.
|
Welcome Guest, Not a member yet? Register Sign In |