diff --git a/web/authorize.qtpl b/web/authorize.qtpl index 05b6495..c484cd4 100644 --- a/web/authorize.qtpl +++ b/web/authorize.qtpl @@ -71,11 +71,11 @@ {% endif %} {% for key, val := range map[string]string{ - "client_id": p.Client.ID.String(), - "redirect_uri": p.RedirectURI.String(), - "response_type": p.ResponseType.String(), - "state": p.State, - } %} + "client_id": p.Client.ID.String(), + "redirect_uri": p.RedirectURI.String(), + "response_type": p.ResponseType.String(), + "state": p.State, + } %} @@ -101,13 +101,14 @@ {% endif %} {% if p.CodeChallenge != "" %} + {% for key, val := range map[string]string{ + "code_challenge": p.CodeChallenge, + "code_challenge_method": p.CodeChallengeMethod.String(), + } %} - - + name="{%s key %}" + value="{%s val %}"> + {% endfor %} {% endif %} {% if p.Me != nil %} diff --git a/web/authorize.qtpl.go b/web/authorize.qtpl.go index 56c0bf0..ff5bfe0 100644 --- a/web/authorize.qtpl.go +++ b/web/authorize.qtpl.go @@ -292,98 +292,107 @@ func (p *AuthorizePage) StreamBody(qw422016 *qt422016.Writer) { if p.CodeChallenge != "" { //line web/authorize.qtpl:103 qw422016.N().S(` + `) +//line web/authorize.qtpl:104 + for key, val := range map[string]string{ + "code_challenge": p.CodeChallenge, + "code_challenge_method": p.CodeChallengeMethod.String(), + } { +//line web/authorize.qtpl:107 + qw422016.N().S(` - - + qw422016.N().S(`"> `) //line web/authorize.qtpl:111 - } + } //line web/authorize.qtpl:111 + qw422016.N().S(` + `) +//line web/authorize.qtpl:112 + } +//line web/authorize.qtpl:112 qw422016.N().S(` `) -//line web/authorize.qtpl:113 +//line web/authorize.qtpl:114 if p.Me != nil { -//line web/authorize.qtpl:113 +//line web/authorize.qtpl:114 qw422016.N().S(` `) -//line web/authorize.qtpl:117 +//line web/authorize.qtpl:118 } -//line web/authorize.qtpl:117 +//line web/authorize.qtpl:118 qw422016.N().S(` `) -//line web/authorize.qtpl:119 +//line web/authorize.qtpl:120 if len(p.Providers) > 0 { -//line web/authorize.qtpl:119 +//line web/authorize.qtpl:120 qw422016.N().S(` `) -//line web/authorize.qtpl:132 +//line web/authorize.qtpl:133 } else { -//line web/authorize.qtpl:132 +//line web/authorize.qtpl:133 qw422016.N().S(` `) -//line web/authorize.qtpl:136 +//line web/authorize.qtpl:137 } -//line web/authorize.qtpl:136 +//line web/authorize.qtpl:137 qw422016.N().S(` @@ -402,39 +411,39 @@ func (p *AuthorizePage) StreamBody(qw422016 *qt422016.Writer) { value="allow"> `) -//line web/authorize.qtpl:149 +//line web/authorize.qtpl:150 p.StreamT(qw422016, "Allow") -//line web/authorize.qtpl:149 +//line web/authorize.qtpl:150 qw422016.N().S(` `) -//line web/authorize.qtpl:153 +//line web/authorize.qtpl:154 } -//line web/authorize.qtpl:153 +//line web/authorize.qtpl:154 func (p *AuthorizePage) WriteBody(qq422016 qtio422016.Writer) { -//line web/authorize.qtpl:153 +//line web/authorize.qtpl:154 qw422016 := qt422016.AcquireWriter(qq422016) -//line web/authorize.qtpl:153 +//line web/authorize.qtpl:154 p.StreamBody(qw422016) -//line web/authorize.qtpl:153 +//line web/authorize.qtpl:154 qt422016.ReleaseWriter(qw422016) -//line web/authorize.qtpl:153 +//line web/authorize.qtpl:154 } -//line web/authorize.qtpl:153 +//line web/authorize.qtpl:154 func (p *AuthorizePage) Body() string { -//line web/authorize.qtpl:153 +//line web/authorize.qtpl:154 qb422016 := qt422016.AcquireByteBuffer() -//line web/authorize.qtpl:153 +//line web/authorize.qtpl:154 p.WriteBody(qb422016) -//line web/authorize.qtpl:153 +//line web/authorize.qtpl:154 qs422016 := string(qb422016.B) -//line web/authorize.qtpl:153 +//line web/authorize.qtpl:154 qt422016.ReleaseByteBuffer(qb422016) -//line web/authorize.qtpl:153 +//line web/authorize.qtpl:154 return qs422016 -//line web/authorize.qtpl:153 +//line web/authorize.qtpl:154 } diff --git a/web/baseof.qtpl b/web/baseof.qtpl index ec626d7..ad7660d 100644 --- a/web/baseof.qtpl +++ b/web/baseof.qtpl @@ -23,55 +23,57 @@ {% stripspace %} {% func (p *BaseOf) Lang() %} - {% if p.Language != language.Und %} - {%s p.Language.String() %} - {% else %} - en - {% endif %} +{% if p.Language != language.Und %} +{%s p.Language.String() %} +{% else %} +en +{% endif %} {% endfunc %} {% endstripspace %} {% collapsespace %} {% func (p *BaseOf) Title() %} - {%s p.Config.Name %} +{%s p.Config.Name %} {% endfunc %} {% func (p *BaseOf) Head() %} - {% comment %}https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs{% endcomment %} - +{% comment %}https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs{% endcomment %} + - + - + - + {% endfunc %} {% func (p *BaseOf) Body() %}{% endfunc %} {% func Template(p Page) %} - - + + -
- - + + + - {%= p.Head() %} - -