diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-07-08 08:23:08 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-07-08 08:23:08 -0700 |
commit | 72f801df7d507599e201a6cb47d4a0304e00f5de (patch) | |
tree | 668ab68855eaa2f007c0d6a5c282e167c0b0ed2a /modules | |
parent | 9538b3888dadbe3a6fac72e2a97f97c7db3d86f2 (diff) |
Only add the 'Successfully re-authenticated' message to the status if the admin page is not displayed in a dialog.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/controllers/reauthenticate.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/controllers/reauthenticate.php b/modules/gallery/controllers/reauthenticate.php index fb1b13bc..ef8855c5 100644 --- a/modules/gallery/controllers/reauthenticate.php +++ b/modules/gallery/controllers/reauthenticate.php @@ -43,10 +43,10 @@ class Reauthenticate_Controller extends Controller { $valid = $form->validate(); $user = identity::active_user(); if ($valid) { - message::success(t("Successfully re-authenticated!")); module::event("user_auth", $user); Session::instance()->delete("reauthenticate"); if (empty($reauthenticate["in_dialog"])) { + message::success(t("Successfully re-authenticated!")); url::redirect($reauthenticate["continue_url"]); } else { self::_call_admin_function($reauthenticate); |