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

Adding purpose description to consent module (used in wayf)

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@953 44740490-163a-0410-bde0-09ae8108e29a
parent 5680866a
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,16 @@ if (array_key_exists('name', $this->data['dstMetadata'])) {
$dstName = $this->data['dstMetadata']['entityid'];
}
$spPurpose = 'unspecified';
if (array_key_exists('descr_purpose', $this->data['dstMetadata'])) {
$spPurpose = $this->data['dstMetadata']['descr_purpose'];
if (is_array($spPurpose)) {
$spPurpose = $this->t($spPurpose);
}
}
$attributes = $this->data['attributes'];
......@@ -55,8 +65,12 @@ $this->includeAtTemplateBase('includes/header.php');
<div id="content">
<p>
<?php echo $this->t('{consent:consent_notice}'); ?> <strong><?php echo htmlspecialchars($dstName); ?></strong>.
<?php echo $this->t('{consent:consent_accept}', array('IDPNAME' => htmlspecialchars($srcName))) ?>
<!-- notice:<?php echo $this->t('{consent:consent_notice}'); ?> <strong><?php echo htmlspecialchars($dstName); ?></strong>. -->
<?php echo $this->t('{consent:consent_accept}', array(
'IDPNAME' => $srcName,
'SPNAME' => $dstName,
'SPDESC' => $spPurpose,
)) ?>
</p>
<?php
......
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