Skip to content

Commit 31cf531

Browse files
Nick Mastorisnikosev
authored andcommitted
Add exception template for attrauthcomanage module
1 parent ca4b941 commit 31cf531

3 files changed

Lines changed: 57 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ This version is compatible with [SimpleSAMLphp v1.18](https://simplesamlphp.org/
1313

1414
- Add `login_with` key in discopower definitions.
1515
- Add style rules and logos for IdP umbrellaid.
16+
- Add exception template for attrauthcomanage module
1617

1718
### Fixed
1819

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"exception_SUSPENDED_USER": {
3+
"en": "Your account has been suspended. Please contact example@email.org for further assistance."
4+
},
5+
"exception_USERIDATTRIBUTE_NOTAVAILABLE": {
6+
"en": "attrauthcomanage configuration error: 'userIdAttribute' not available"
7+
},
8+
"exception_CONFIG_VALIDATION_RULES_MISSING": {
9+
"en": "[attrauthcomanage] Config or validation Rules missing."
10+
},
11+
"exception_ATTRIBUTE_NOT_SPECIFIED": {
12+
"en": "attrauthcomanage configuration error: '%REQATTR%' not specified"
13+
},
14+
"exception_ATTRIBUTE_WRONG_FORMAT": {
15+
"en": "attrauthcomanage configuration error: '%REQATTR%' wrong format(array required)"
16+
},
17+
"exception_ATTRIBUTE_KEY_CONFIGURATION_ERROR": {
18+
"en": "attrauthcomanage configuration error: '%REQATTR%' key configuration error. Required keys missing: %NONKEYS%"
19+
},
20+
"exception_ATTRIBUTE_INVALID_VALUE": {
21+
"en": "attrauthcomanage configuration error: '%REQATTR%' invalid value"
22+
},
23+
"exception_ATTRIBUTE_NOT_BOOLEAN": {
24+
"en": "attrauthcomanage configuration error: %OPTATTR% not a boolean"
25+
},
26+
"exception_header": {
27+
"en": "Error in attribute aggregation"
28+
},
29+
"exception_title": {
30+
"en": "Oops! Something went wrong."
31+
},
32+
"exception_description": {
33+
"en": "An unexpected error occurred while retrieving attributes from an external attribute authority. The exception was:"
34+
}
35+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
$this->data['header'] = $this->t('{themevanilla:attrauthcomanage:exception_header}');
3+
4+
$this->includeAtTemplateBase('includes/header.php');
5+
?>
6+
<h1><?= $this->t('{themevanilla:attrauthcomanage:exception_title}') ?></h1>
7+
8+
<?= $this->t('{themevanilla:attrauthcomanage:exception_description}') ?>
9+
<pre>
10+
<?php
11+
$tag = preg_replace('/attrauthcomanage:/', 'themevanilla:', $this->data['e'], 1);
12+
echo (
13+
!empty($this->getTag('{' . $tag . '}'))
14+
? $this->t('{' . $tag . '}', $this->data['parameters'])
15+
: $this->data['e']
16+
);
17+
?>
18+
</pre>
19+
20+
<?php
21+
$this->includeAtTemplateBase('includes/footer.php');

0 commit comments

Comments
 (0)