Skip to content
Snippets Groups Projects
Unverified Commit 5209efe0 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Merge branch 'master' into Xnew-ui-fixes

parents 107f3772 6645452b
No related branches found
No related tags found
No related merge requests found
......@@ -103,27 +103,27 @@ and defaults to `consent`.
Example config using PostgreSQL database:
90 => array(
'class' => 'consent:Consent',
'store' => array(
'consent:Database',
'dsn' => 'pgsql:host=sql.example.org;dbname=consent',
'username' => 'simplesaml',
'password' => 'sdfsdf',
),
),
90 => array(
'class' => 'consent:Consent',
'store' => array(
'consent:Database',
'dsn' => 'pgsql:host=sql.example.org;dbname=consent',
'username' => 'simplesaml',
'password' => 'sdfsdf',
),
),
Example config using MySQL database:
90 => array(
'class' => 'consent:Consent',
'store' => array(
'consent:Database',
90 => array(
'class' => 'consent:Consent',
'store' => array(
'consent:Database',
'dsn' => 'mysql:host=db.example.org;dbname=simplesaml',
'username' => 'simplesaml',
'password' => 'sdfsdf',
),
),
'username' => 'simplesaml',
'password' => 'sdfsdf',
),
),
Options
......
......@@ -318,7 +318,7 @@ class Consent extends \SimpleSAML\Auth\ProcessingFilter
$state['consent:store.attributeSet'] = $attributeSet;
} catch (\Exception $e) {
Logger::error('Consent: Error reading from storage: '.$e->getMessage());
Logger::stats('Ccnsent failed');
Logger::stats('Consent failed');
Stats::log('consent:failed', $statsData);
}
} else {
......
......@@ -218,6 +218,7 @@ $template_sp_content = array();
$template = new \SimpleSAML\XHTML\Template($config, 'consentAdmin:consentadmin.php', 'consentAdmin:consentadmin');
$translator = $template->getTranslator();
$translator->includeLanguageFile('attributes'); // attribute listings translated by this dictionary
$sp_empty_description = $translator->getTag('sp_empty_description');
// Process consents for all SP
......
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