CodeIgniter Forums

Full Version: Ion Auth redirecting problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]BrainCatcher[/eluser]
Hi guys

I have just successfully installed ION Auth. But when i use the forgot_password function in the 'auth' controller. Its doesn't redirect properly to the login page. I spent an hour on it and i can't figure it out. Nothing seems to be wrong.

Code:
if ($forgotten) { //if there were no errors
                $this->session->set_flashdata('message', $this->ion_auth->messages());
                redirect("auth/login", 'refresh');             }
            else {
                $this->session->set_flashdata('message', $this->ion_auth->errors());
                redirect("auth/forgot_password", 'refresh');
            }

Could someone help me out please?