Skip to content

Commit bd1aa37

Browse files
authored
add disconnect in consent page (#56)
1 parent fc46b79 commit bd1aa37

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

tchap/resources/templates/pages/consent.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,25 +64,21 @@ <h1 class="title">{{ _("mas.consent.heading") }}</h1>
6464
{{ button.button(text=_("action.continue")) }}
6565
</form>
6666

67-
68-
<!--
69-
:tchap:
7067
<div class="flex gap-1 justify-center items-center">
7168
<p class="cpd-text-secondary cpd-text-body-md-regular">
7269
{{ _("mas.not_you", username=current_session.user.username) }}
7370
</p>
7471

7572
{{ logout.button(text=_("action.sign_out"), csrf_token=csrf_token, post_logout_action=action, as_link=true) }}
7673
</div>
77-
74+
<!-- :tchap:
7875
{{ back_to_client.link(
7976
text=_("action.cancel"),
8077
kind="tertiary",
8178
uri=grant.redirect_uri,
8279
mode=grant.response_mode,
8380
params=dict(error="access_denied", state=grant.state)
8481
) }}
85-
:tchap:
86-
-->
82+
-->
8783
</section>
8884
{% endblock content %}

tchap/resources/translations/en.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"cancel": "Cancel",
88
"@cancel": {
9-
"context": "consent.html:69:11-29, pages/consent.html:79:11-29, pages/device_consent.html:127:13-31, pages/policy_violation.html:44:13-31"
9+
"context": "consent.html:69:11-29, pages/consent.html:76:11-29, pages/device_consent.html:127:13-31, pages/policy_violation.html:44:13-31"
1010
},
1111
"continue": "Continue",
1212
"@continue": {
@@ -22,7 +22,7 @@
2222
},
2323
"sign_out": "Sign out",
2424
"@sign_out": {
25-
"context": "index.html:37:28-48, pages/account/logged_out.html:22:28-48, pages/consent.html:75:28-48, pages/device_consent.html:136:30-50, pages/index.html:28:28-48, pages/policy_violation.html:38:28-48, pages/sso.html:45:28-48, pages/upstream_oauth2/link_mismatch.html:24:24-44, pages/upstream_oauth2/suggest_link.html:32:26-46"
25+
"context": "index.html:37:28-48, pages/account/logged_out.html:22:28-48, pages/consent.html:72:28-48, pages/device_consent.html:136:30-50, pages/index.html:28:28-48, pages/policy_violation.html:38:28-48, pages/sso.html:45:28-48, pages/upstream_oauth2/link_mismatch.html:24:24-44, pages/upstream_oauth2/suggest_link.html:32:26-46"
2626
},
2727
"skip": "Skip",
2828
"@skip": {
@@ -489,7 +489,7 @@
489489
},
490490
"not_you": "Not %(username)s?",
491491
"@not_you": {
492-
"context": "consent.html:62:11-67, pages/consent.html:72:11-67, pages/device_consent.html:133:13-69, pages/sso.html:42:11-67",
492+
"context": "consent.html:62:11-67, pages/consent.html:69:11-67, pages/device_consent.html:133:13-69, pages/sso.html:42:11-67",
493493
"description": "Suggestions for the user to log in as a different user"
494494
},
495495
"or_separator": "Or",

0 commit comments

Comments
 (0)