diff --git a/data/web/inc/header.inc.php b/data/web/inc/header.inc.php index 9afc288dd..5fe25bef0 100644 --- a/data/web/inc/header.inc.php +++ b/data/web/inc/header.inc.php @@ -49,7 +49,6 @@ $globalVariables = [ 'app_links' => customize('get', 'app_links'), 'is_root_uri' => (parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) == '/'), 'uri' => $_SERVER['REQUEST_URI'], - 'last_login' => last_login('get', $_SESSION['mailcow_cc_username'], 7, 0)['ui']['time'] ]; foreach ($globalVariables as $globalVariableName => $globalVariableValue) { diff --git a/data/web/js/site/user.js b/data/web/js/site/user.js index 088321cd3..59d65d8ce 100644 --- a/data/web/js/site/user.js +++ b/data/web/js/site/user.js @@ -676,5 +676,5 @@ jQuery(function($){ onVisible("[id^=wl_policy_mailbox_table]", () => draw_wl_policy_mailbox_table()); onVisible("[id^=sync_job_table]", () => draw_sync_job_table()); onVisible("[id^=app_passwd_table]", () => draw_app_passwd_table()); - last_logins('get'); + onVisible("[id^=recent-logins]", () => last_logins('get')); }); diff --git a/data/web/templates/base.twig b/data/web/templates/base.twig index ca744d2a3..bd1f5b413 100644 --- a/data/web/templates/base.twig +++ b/data/web/templates/base.twig @@ -146,7 +146,6 @@ var lang_fido2 = {{ lang_fido2|raw }}; var docker_timeout = {{ docker_timeout|raw }} * 1000; var mailcow_cc_role = '{{ mailcow_cc_role }}'; - var last_login = '{{ last_login }}'; var mailcow_info = { version_tag: '{{ mailcow_info.version_tag }}', last_version_tag: '{{ mailcow_info.last_version_tag }}', diff --git a/data/web/templates/user/tab-user-auth.twig b/data/web/templates/user/tab-user-auth.twig index 4d55b7090..bc15dfb05 100644 --- a/data/web/templates/user/tab-user-auth.twig +++ b/data/web/templates/user/tab-user-auth.twig @@ -155,7 +155,7 @@