[eluser]Deadly[/eluser]
I've installed DX Auth and everything looks good - except for the fact I cannot register a new user. I fill out the form, submit it and the page simply refreshes with no feedback. After hours of messing around with it, I discovered that, in the advanced example, if i remove the validation rules and initialization:
Code:
$val = $this->form_validation;
// Set form validation rules
$val->set_rules('username', 'Username', 'trim|required|xss_clean|min_length['.$this->min_username.']|max_length['.$this->max_username.']|callback_username_check|alpha_dash');
$val->set_rules('password', 'Password', 'trim|required|xss_clean|min_length['.$this->min_password.']|max_length['.$this->max_password.']|matches[confirm_password]');
$val->set_rules('confirm_password', 'Confirm Password', 'trim|required|xss_clean');
$val->set_rules('email', 'Email', 'trim|required|xss_clean|valid_email|callback_email_check');
and change this line:
Code:
if ($val->run() AND $this->dx_auth->register($val->set_value('username'), $val->set_value('password'), $val->set_value('email')))
to this instead:
Code:
if ($this->dx_auth->register($this->input->post('username'), $this->input->post('password'), $this->input->post('email')))
...it works. sort of. i can now register a new user, but automatically just loading the register page - no need to submit a form! of course, that's of no use either, but it represents some sort of progress to me.
Has anyone else come across this? Is it a DX Auth issue? A CI issue? A combination? I'm lost, any help appreciated...