From 2903c8ccbf033ade920f3dcebd9957b4647e5916 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20P=C3=A9rez=20Crespo?= <jaime.perez@uninett.no>
Date: Tue, 28 Jan 2014 15:19:28 +0000
Subject: [PATCH] Log a message when a user authenticates successfully.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3340 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/core/lib/Auth/UserPassBase.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/core/lib/Auth/UserPassBase.php b/modules/core/lib/Auth/UserPassBase.php
index f734d4331..1d7b12946 100644
--- a/modules/core/lib/Auth/UserPassBase.php
+++ b/modules/core/lib/Auth/UserPassBase.php
@@ -218,6 +218,8 @@ abstract class sspmod_core_Auth_UserPassBase extends SimpleSAML_Auth_Source {
 		 * was called. We should call login() on the same authentication source.
 		 */
 
+		SimpleSAML_Logger::stats('User \''.$username.'\' has been successfully authenticated.');
+
 		/* Attempt to log in. */
 		$attributes = $source->login($username, $password);
 
-- 
GitLab