From aa615c04c9d948d20911e06d7ceeb836ab49be49 Mon Sep 17 00:00:00 2001 From: Brian Candler <b.candler@pobox.com> Date: Thu, 11 Feb 2021 17:15:46 +0000 Subject: [PATCH] Improve "Grant Access" template when client requests only openid scope Fixes #1732 Signed-off-by: Brian Candler <b.candler@pobox.com> --- web/templates/approval.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/templates/approval.html b/web/templates/approval.html index 2fa7bf21..1c037d2d 100644 --- a/web/templates/approval.html +++ b/web/templates/approval.html @@ -5,12 +5,16 @@ <hr class="dex-separator"> <div> + {{ if .Scopes }} <div class="dex-subtle-text">{{ .Client }} would like to:</div> <ul class="dex-list"> {{ range $scope := .Scopes }} <li>{{ $scope }}</li> {{ end }} </ul> + {{ else }} + <div class="dex-subtle-text">{{ .Client }} has not requested any personal information</div> + {{ end }} </div> <hr class="dex-separator"> -- GitLab