Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]Schumacher[/eluser]
Great, just what i need Smile

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.


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 04-13-2010, 05:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB