💄 Changed scope form field tag template

This commit is contained in:
Maxim Lebedev 2022-06-22 19:24:12 +05:00
parent 364f974c0b
commit 80895bfed3
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 10 additions and 1 deletions

View File

@ -50,13 +50,22 @@
"redirect_uri": p.Client.RedirectURI[0].String(),
"response_type": domain.ResponseTypeCode.String(),
"state": p.State,
"scope": domain.Scopes{domain.ScopeProfile, domain.ScopeEmail}.String(),
} %}
<input
type="hidden"
name="{%s name %}"
value="{%s value %}">
{% endfor %}
{% for _, scope := domain.Scopes{
domain.ScopeProfile,
domain.ScopeEmail,
} %}
<input
type="hidden"
name="scope[]"
value="{%s scope.String() %}">
{% endfor %}
<input
type="url"