CodeIgniter Forums
Ion Auth redirecting problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Ion Auth redirecting problem (/showthread.php?tid=40663)



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?