summaryrefslogtreecommitdiffstats
path: root/application/core
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-06-05 19:13:54 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-06-05 19:13:54 +0200
commitad16e8ff484b1942ff905b6b87fe174740917afb (patch)
treee9b007a59065bd216252a54d4a7d7b8114a9ca53 /application/core
parent5eee0e8faec92393750cc8d89523bf786c536384 (diff)
Fix redirect on login after registering new account
Previously the login box in the navigation would redirect to the current page, but this page will throw an error in the case of the registration page since that's the page with the invition key and that key is no longer valid. Fix this by redirecting to the $redirect_uri and ensure that this value is set for all requests. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/core')
-rw-r--r--application/core/MY_Controller.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/application/core/MY_Controller.php b/application/core/MY_Controller.php
index 5181c2904..79d258c37 100644
--- a/application/core/MY_Controller.php
+++ b/application/core/MY_Controller.php
@@ -103,5 +103,6 @@ class MY_Controller extends CI_Controller {
$this->load->model("muser");
$this->data["user_logged_in"] = $this->muser->logged_in();
+ $this->data['redirect_uri'] = $this->uri->uri_string();
}
}