Fixed blocking last connection fetching
This commit is contained in:
parent
58f63aad08
commit
6ba2459645
@ -49,7 +49,6 @@ $globalVariables = [
|
|||||||
'app_links' => customize('get', 'app_links'),
|
'app_links' => customize('get', 'app_links'),
|
||||||
'is_root_uri' => (parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) == '/'),
|
'is_root_uri' => (parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) == '/'),
|
||||||
'uri' => $_SERVER['REQUEST_URI'],
|
'uri' => $_SERVER['REQUEST_URI'],
|
||||||
'last_login' => last_login('get', $_SESSION['mailcow_cc_username'], 7, 0)['ui']['time']
|
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($globalVariables as $globalVariableName => $globalVariableValue) {
|
foreach ($globalVariables as $globalVariableName => $globalVariableValue) {
|
||||||
|
@ -676,5 +676,5 @@ jQuery(function($){
|
|||||||
onVisible("[id^=wl_policy_mailbox_table]", () => draw_wl_policy_mailbox_table());
|
onVisible("[id^=wl_policy_mailbox_table]", () => draw_wl_policy_mailbox_table());
|
||||||
onVisible("[id^=sync_job_table]", () => draw_sync_job_table());
|
onVisible("[id^=sync_job_table]", () => draw_sync_job_table());
|
||||||
onVisible("[id^=app_passwd_table]", () => draw_app_passwd_table());
|
onVisible("[id^=app_passwd_table]", () => draw_app_passwd_table());
|
||||||
last_logins('get');
|
onVisible("[id^=recent-logins]", () => last_logins('get'));
|
||||||
});
|
});
|
||||||
|
@ -146,7 +146,6 @@
|
|||||||
var lang_fido2 = {{ lang_fido2|raw }};
|
var lang_fido2 = {{ lang_fido2|raw }};
|
||||||
var docker_timeout = {{ docker_timeout|raw }} * 1000;
|
var docker_timeout = {{ docker_timeout|raw }} * 1000;
|
||||||
var mailcow_cc_role = '{{ mailcow_cc_role }}';
|
var mailcow_cc_role = '{{ mailcow_cc_role }}';
|
||||||
var last_login = '{{ last_login }}';
|
|
||||||
var mailcow_info = {
|
var mailcow_info = {
|
||||||
version_tag: '{{ mailcow_info.version_tag }}',
|
version_tag: '{{ mailcow_info.version_tag }}',
|
||||||
last_version_tag: '{{ mailcow_info.last_version_tag }}',
|
last_version_tag: '{{ mailcow_info.last_version_tag }}',
|
||||||
|
@ -155,7 +155,7 @@
|
|||||||
<li class="login-history" data-days="31"><a class="dropdown-item" href="#">1 {{ lang.user.month }}</a></li>
|
<li class="login-history" data-days="31"><a class="dropdown-item" href="#">1 {{ lang.user.month }}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="last-login mt-4"></div>
|
<div class="last-login mt-4" id="recent-logins"></div>
|
||||||
<span class="clear-last-logins mt-2">
|
<span class="clear-last-logins mt-2">
|
||||||
{{ lang.user.clear_recent_successful_connections }}
|
{{ lang.user.clear_recent_successful_connections }}
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user