From 6a8ebdf6cd4c952dfc5b46fad315940c2bfd6763 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Fri, 27 Feb 2009 07:40:13 +0000
Subject: [PATCH] Log consentRemember

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1335 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/consent/www/getconsent.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/consent/www/getconsent.php b/modules/consent/www/getconsent.php
index b075c6cb0..c93d34132 100644
--- a/modules/consent/www/getconsent.php
+++ b/modules/consent/www/getconsent.php
@@ -30,6 +30,12 @@ $state = SimpleSAML_Auth_State::loadState($id, 'consent:request');
 
 if (array_key_exists('yes', $_REQUEST)) {
 	/* The user has pressed the yes-button. */
+	
+	if (array_key_exists('saveconsent', $_REQUEST)) {
+		SimpleSAML_Logger::stats('consentResponse remember');		
+	} else {
+		SimpleSAML_Logger::stats('consentResponse rememberNot');
+	}
 
 	if (array_key_exists('consent:store', $state) && array_key_exists('saveconsent', $_REQUEST)
 		&& $_REQUEST['saveconsent'] === '1') {
-- 
GitLab