. callback has_match _ . , , :
callback_has_match[$username]
, has_match(), $username. , . , , , , , min_length [10] - PHP. , , :
$this->form_validation->set_rules('password', 'Password', 'required|callback_has_match[' . $username . ']');
, , , .
, , , , - , . / ?
, , . , /, , , , - .
:
$this->form_validation->set_rules('username', 'Username', 'required');
$this->form_validation->set_rules('password', 'Password', 'required|callback_has_match[username]');
if ($this->form_validation->run() != FALSE) {
$validLogin = $this->muser->checkLogin($username, $password);
if ($validLogin) {
} else {
}
} else {
}