diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-04-09 00:35:11 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-04-09 20:48:08 +0200 |
commit | 965dca9990d416fc4016c26d0e8d7dbff4de0a8f (patch) | |
tree | b2e22bf1341e91b9fd091a53f2456c168eaf77e3 /application | |
parent | 3070b26e858f41985e582fcdd9d8e838ce4cfde9 (diff) |
Redirect to / if log in successful
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r-- | application/controllers/user.php | 5 | ||||
-rw-r--r-- | application/views/user/login_successful.php | 1 |
2 files changed, 1 insertions, 5 deletions
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 { diff --git a/application/views/user/login_successful.php b/application/views/user/login_successful.php deleted file mode 100644 index d6ee74040..000000000 --- a/application/views/user/login_successful.php +++ /dev/null @@ -1 +0,0 @@ -Login successful. |