From 965dca9990d416fc4016c26d0e8d7dbff4de0a8f Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 9 Apr 2012 00:35:11 +0200 Subject: Redirect to / if log in successful Signed-off-by: Florian Pritz --- application/controllers/user.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'application/controllers/user.php') diff --git a/application/controllers/user.php b/application/controllers/user.php index c4085a8f6..2a73a1ef5 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -48,10 +48,7 @@ class User extends CI_Controller { if ($uri) { redirect($uri); } else { - $this->data['username'] = $this->muser->get_username(); - $this->load->view($this->var->view_dir.'header', $this->data); - $this->load->view($this->var->view_dir.'login_successful', $this->data); - $this->load->view($this->var->view_dir.'footer', $this->data); + redirect("/"); } } } else { -- cgit v1.2.3-24-g4f1b