Only add the 'Successfully re-authenticated' message to the status if the admin page is not displayed in a dialog.

This commit is contained in:
Tim Almdal
2010-07-08 08:23:08 -07:00
parent 9538b3888d
commit 72f801df7d

View File

@@ -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);