diff --git a/data/web/inc/functions.mailbox.inc.php b/data/web/inc/functions.mailbox.inc.php index c927ce494..d24914a22 100644 --- a/data/web/inc/functions.mailbox.inc.php +++ b/data/web/inc/functions.mailbox.inc.php @@ -4546,6 +4546,9 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) { } else if ($SaslLogs['service'] == 'pop3') { $last_pop3_login = strtotime($SaslLogs['datetime']); + } + else if ($SaslLogs['service'] == 'SSO') { + $last_sso_login = strtotime($SaslLogs['datetime']); } } if (!isset($last_imap_login) || $GLOBALS['SHOW_LAST_LOGIN'] === false) { @@ -4556,10 +4559,14 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) { } if (!isset($last_pop3_login) || $GLOBALS['SHOW_LAST_LOGIN'] === false) { $last_pop3_login = 0; + } + if (!isset($last_sso_login) || $GLOBALS['SHOW_LAST_LOGIN'] === false) { + $last_sso_login = 0; } $mailboxdata['last_imap_login'] = $last_imap_login; $mailboxdata['last_smtp_login'] = $last_smtp_login; $mailboxdata['last_pop3_login'] = $last_pop3_login; + $mailboxdata['last_sso_login'] = $last_sso_login; if (!isset($_extra) || $_extra != 'reduced') { $rl = ratelimit('get', 'mailbox', $_data); diff --git a/data/web/js/site/mailbox.js b/data/web/js/site/mailbox.js index 51dbcf435..2ec2f9fa4 100644 --- a/data/web/js/site/mailbox.js +++ b/data/web/js/site/mailbox.js @@ -894,7 +894,7 @@ jQuery(function($){ item.quota.value = humanFileSize(item.quota_used) + "/" + item.quota.value; item.max_quota_for_mbox = humanFileSize(item.max_quota_for_mbox); - item.last_mail_login = item.last_imap_login + '/' + item.last_pop3_login + '/' + item.last_smtp_login; + item.last_mail_login = item.last_imap_login + '/' + item.last_pop3_login + '/' + item.last_smtp_login + '/' + item.last_sso_login; /* if (!item.rl) { item.rl = '∞'; @@ -1015,7 +1015,8 @@ jQuery(function($){ res = data.split("/"); return '