forked from mystiq/dex
Improve "Grant Access" template when client requests only openid scope
Fixes #1732 Signed-off-by: Brian Candler <b.candler@pobox.com>
This commit is contained in:
parent
35cd09d481
commit
aa615c04c9
1 changed files with 4 additions and 0 deletions
|
@ -5,12 +5,16 @@
|
||||||
|
|
||||||
<hr class="dex-separator">
|
<hr class="dex-separator">
|
||||||
<div>
|
<div>
|
||||||
|
{{ if .Scopes }}
|
||||||
<div class="dex-subtle-text">{{ .Client }} would like to:</div>
|
<div class="dex-subtle-text">{{ .Client }} would like to:</div>
|
||||||
<ul class="dex-list">
|
<ul class="dex-list">
|
||||||
{{ range $scope := .Scopes }}
|
{{ range $scope := .Scopes }}
|
||||||
<li>{{ $scope }}</li>
|
<li>{{ $scope }}</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{ else }}
|
||||||
|
<div class="dex-subtle-text">{{ .Client }} has not requested any personal information</div>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<hr class="dex-separator">
|
<hr class="dex-separator">
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue