From 19deda31bc92b56241286bac4ad1711d7b1eb520 Mon Sep 17 00:00:00 2001 From: q16marvin Date: Fri, 9 Feb 2024 11:23:47 +0100 Subject: [PATCH] Update functions.mailbox.inc.php --- data/web/inc/functions.mailbox.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/data/web/inc/functions.mailbox.inc.php b/data/web/inc/functions.mailbox.inc.php index 0f48efbd5..5588c1aee 100644 --- a/data/web/inc/functions.mailbox.inc.php +++ b/data/web/inc/functions.mailbox.inc.php @@ -4501,6 +4501,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) { @@ -4511,10 +4514,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);