diff --git a/modules/core/lib/Auth/Process/StatisticsWithAttribute.php b/modules/core/lib/Auth/Process/StatisticsWithAttribute.php index 49cc61b8789efd8942b8562fbc25cdc762511f3c..604b208ae118d858b7de7bfd701369814795d3d2 100644 --- a/modules/core/lib/Auth/Process/StatisticsWithAttribute.php +++ b/modules/core/lib/Auth/Process/StatisticsWithAttribute.php @@ -62,9 +62,12 @@ class sspmod_core_Auth_Process_StatisticsWithAttribute extends SimpleSAML_Auth_P if (array_key_exists('Source', $state)) $source = $state['Source']['entityid']; if (array_key_exists('Destination', $state)) $dest = $state['Destination']['entityid']; - + if (!array_key_exists('PreviousSSOTimestamp', $state)) { + /* The user hasn't authenticated with this SP earlier in this session. */ + SimpleSAML_Logger::stats($this->typeTag . '-first ' . $dest . ' ' . $source . ' ' . $logAttribute); + } + SimpleSAML_Logger::stats($this->typeTag . ' ' . $dest . ' ' . $source . ' ' . $logAttribute); - } }