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

Added no consent link (Thomas Graff)

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1090 44740490-163a-0410-bde0-09ae8108e29a
parent 09af5ebc
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,11 @@ ...@@ -14,6 +14,11 @@
echo($this->t('{consent:noconsent_return}')); echo($this->t('{consent:noconsent_return}'));
echo('</a></p>'); echo('</a></p>');
} }
if($this->data['aboutService']) {
echo('<p><a href="' . htmlspecialchars($this->data['aboutService']) . '">');
echo($this->t('{consent:noconsent_goto_about}'));
echo('</a></p>');
}
?> ?>
<?php $this->includeAtTemplateBase('includes/footer.php'); ?> <?php $this->includeAtTemplateBase('includes/footer.php'); ?>
...@@ -17,11 +17,16 @@ $state = SimpleSAML_Auth_State::loadState($id, 'consent:request'); ...@@ -17,11 +17,16 @@ $state = SimpleSAML_Auth_State::loadState($id, 'consent:request');
$resumeFrom = SimpleSAML_Module::getModuleURL('consent/getconsent.php'); $resumeFrom = SimpleSAML_Module::getModuleURL('consent/getconsent.php');
$resumeFrom = SimpleSAML_Utilities::addURLParameter($resumeFrom, array('StateId' => $id)); $resumeFrom = SimpleSAML_Utilities::addURLParameter($resumeFrom, array('StateId' => $id));
if(isset($state['Destination']['url.about']) ){
$aboutService = $state['Destination']['url.about'];
}
$globalConfig = SimpleSAML_Configuration::getInstance(); $globalConfig = SimpleSAML_Configuration::getInstance();
$t = new SimpleSAML_XHTML_Template($globalConfig, 'consent:noconsent.php'); $t = new SimpleSAML_XHTML_Template($globalConfig, 'consent:noconsent.php');
$t->data['dstMetadata'] = $state['Destination']; $t->data['dstMetadata'] = $state['Destination'];
$t->data['resumeFrom'] = $resumeFrom; $t->data['resumeFrom'] = $resumeFrom;
$t->data['aboutService'] = $aboutService;
$t->show(); $t->show();
?> ?>
\ No newline at end of file
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