CodeIgniter Forums
Ion Auth redirecting problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Ion Auth redirecting problem (/thread-40663.html)



Ion Auth redirecting problem - El Forum - 04-15-2011

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