diff options
author | Andy Staudacher <andy.st@gmail.com> | 2010-02-08 00:30:36 -0800 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2010-02-08 00:30:36 -0800 |
commit | f9d00aa7429599f46e09b23e8313932ac5e186c3 (patch) | |
tree | 1b9668d058abd0976f3827fef3fb21c5a6d2df91 /modules/gallery/controllers/reauthenticate.php | |
parent | d0f6839c25c328c1bc0baff87974a8b268933361 (diff) |
Fix for ticket 1008: Redirect to destination after re-auth.
Diffstat (limited to 'modules/gallery/controllers/reauthenticate.php')
-rw-r--r-- | modules/gallery/controllers/reauthenticate.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/controllers/reauthenticate.php b/modules/gallery/controllers/reauthenticate.php index 4b88a9cc..dbd1cd21 100644 --- a/modules/gallery/controllers/reauthenticate.php +++ b/modules/gallery/controllers/reauthenticate.php @@ -37,7 +37,8 @@ class Reauthenticate_Controller extends Controller { if ($valid) { message::success(t("Successfully re-authenticated!")); module::event("user_auth", $user); - url::redirect("admin"); + $continue_url = Session::instance()->get_once("continue_url", "admin"); + url::redirect($continue_url); } else { $name = $user->name; log::warning("user", t("Failed re-authentication for %name", array("name" => $name))); |