mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 17:29:18 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user