Welcome Guest, Not a member yet? Register   Sign In
Help! DX Auth, set_value vs. $this->input->post()
#1

[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...


Messages In This Thread
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-11-2009, 06:43 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-11-2009, 07:58 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-11-2009, 08:00 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-11-2009, 08:20 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-11-2009, 08:56 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-11-2009, 10:28 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-11-2009, 11:31 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-11-2009, 11:38 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-11-2009, 11:45 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-11-2009, 11:54 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-12-2009, 07:56 AM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-12-2009, 01:38 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-12-2009, 01:54 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-12-2009, 02:01 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-12-2009, 02:26 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-12-2009, 02:37 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-12-2009, 04:23 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-12-2009, 04:26 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-12-2009, 04:39 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-12-2009, 04:55 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-12-2009, 05:23 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-12-2009, 09:38 PM
Help! DX Auth, set_value vs. $this->input->post() - by El Forum - 11-13-2009, 07:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB