[eluser]Schumacher[/eluser]
Great, just what i need
just a thought, you might want to make a slict chance in the auth controller.
Because when im creating a user it redirects me to the auth site, without any messages if there was an error(email, username allready exists), so the user thinks it has been created , but wasn't.
so i did it this way.
Code:
//register the user
if($this->ion_auth->register($username,$password,$email,$additional_data))
{
$this->session->set_flashdata('message', "Brugeren er nu oprettet");
redirect("site", 'refresh');
}else {
$this->session->set_flashdata('message', $this->ion_auth->errors());
redirect("auth/create_user", 'refresh');
}
though the form dosn't get filled out with the old information, because it wasn't the form_validation that sent it back. So, is there a way to get that to work, or should i just make a callback function on this.