Skip to content
Snippets Groups Projects
Commit bce862ae authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Log consent

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1332 44740490-163a-0410-bde0-09ae8108e29a
parent a1b44825
No related branches found
No related tags found
No related merge requests found
...@@ -160,15 +160,21 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt ...@@ -160,15 +160,21 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt
SimpleSAML_Logger::debug('Consent - hasConsent() : [' . $userId . '|' . $targetedId . '|' . $attributeSet . ']'); SimpleSAML_Logger::debug('Consent - hasConsent() : [' . $userId . '|' . $targetedId . '|' . $attributeSet . ']');
if ($this->store->hasConsent($userId, $targetedId, $attributeSet)) { if ($this->store->hasConsent($userId, $targetedId, $attributeSet)) {
SimpleSAML_Logger::stats('consent found');
/* Consent already given. */ /* Consent already given. */
return; return;
} }
SimpleSAML_Logger::stats('consent notfound');
$state['consent:store'] = $this->store; $state['consent:store'] = $this->store;
$state['consent:store.userId'] = $userId; $state['consent:store.userId'] = $userId;
$state['consent:store.destination'] = $targetedId; $state['consent:store.destination'] = $targetedId;
$state['consent:store.attributeSet'] = $attributeSet; $state['consent:store.attributeSet'] = $attributeSet;
} else {
SimpleSAML_Logger::stats('consent nostorage');
} }
$state['consent:focus'] = $this->focus; $state['consent:focus'] = $this->focus;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment