Skip to content

Commit

Permalink
Update consent template to twig
Browse files Browse the repository at this point in the history
  • Loading branch information
pradtke committed Feb 14, 2024
1 parent 0c01b3d commit 68e5ac7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
5 changes: 0 additions & 5 deletions dictionaries/authoauth2.definition.json

This file was deleted.

6 changes: 6 additions & 0 deletions locales/en/LC_MESSAGES/authoauth2.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

msgid "noconsent_error"
msgstr "You must consent/allow access to your profile information. Press the back button and then allow/grant access."

msgid "noconsent_title"
msgstr "Consent Needed"
4 changes: 2 additions & 2 deletions public/errors/consent.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

$config = SimpleSAML\Configuration::getInstance();
$t = new SimpleSAML\XHTML\Template($config, 'authoauth2:errors/consent.php');
$t->show();
$t = new SimpleSAML\XHTML\Template($config, 'authoauth2:errors/consent.twig');
$t->send();
5 changes: 0 additions & 5 deletions templates/errors/consent.php

This file was deleted.

6 changes: 6 additions & 0 deletions templates/errors/consent.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% set pagetitle = 'noconsent_title'|trans %}
{% extends "base.twig" %}

{% block content %}
<p>{{ 'noconsent_error' |trans }}</p>
{% endblock %}

0 comments on commit 68e5ac7

Please sign in to comment.