mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 23:05:18 -04:00
Fix for ticket 1008: Redirect to destination after re-auth.
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user