diff --git a/web/authorize.qtpl b/web/authorize.qtpl
index 6bc5f72..80df168 100644
--- a/web/authorize.qtpl
+++ b/web/authorize.qtpl
@@ -1,15 +1,17 @@
-{% import "source.toby3d.me/toby3d/auth/internal/domain" %}
+{% import (
+ "source.toby3d.me/toby3d/auth/internal/domain"
+) %}
{% code type AuthorizePage struct {
BaseOf
- CSRF []byte
- Providers []*domain.Provider
Scope domain.Scopes
+ CodeChallengeMethod domain.CodeChallengeMethod
+ ResponseType domain.ResponseType
Client *domain.Client
Me *domain.Me
RedirectURI *domain.URL
- CodeChallengeMethod domain.CodeChallengeMethod
- ResponseType domain.ResponseType
+ Providers []*domain.Provider
+ CSRF []byte
CodeChallenge string
State string
} %}
@@ -25,8 +27,7 @@
{% func (p *AuthorizePage) Body() %}
{% if p.Client.GetLogo() != nil %}
-
{% endif %}
@@ -53,7 +55,7 @@
-
`)
-//line web/authorize.qtpl:159
+//line web/authorize.qtpl:153
}
-//line web/authorize.qtpl:159
+//line web/authorize.qtpl:153
func (p *AuthorizePage) WriteBody(qq422016 qtio422016.Writer) {
-//line web/authorize.qtpl:159
+//line web/authorize.qtpl:153
qw422016 := qt422016.AcquireWriter(qq422016)
-//line web/authorize.qtpl:159
+//line web/authorize.qtpl:153
p.StreamBody(qw422016)
-//line web/authorize.qtpl:159
+//line web/authorize.qtpl:153
qt422016.ReleaseWriter(qw422016)
-//line web/authorize.qtpl:159
+//line web/authorize.qtpl:153
}
-//line web/authorize.qtpl:159
+//line web/authorize.qtpl:153
func (p *AuthorizePage) Body() string {
-//line web/authorize.qtpl:159
+//line web/authorize.qtpl:153
qb422016 := qt422016.AcquireByteBuffer()
-//line web/authorize.qtpl:159
+//line web/authorize.qtpl:153
p.WriteBody(qb422016)
-//line web/authorize.qtpl:159
+//line web/authorize.qtpl:153
qs422016 := string(qb422016.B)
-//line web/authorize.qtpl:159
+//line web/authorize.qtpl:153
qt422016.ReleaseByteBuffer(qb422016)
-//line web/authorize.qtpl:159
+//line web/authorize.qtpl:153
return qs422016
-//line web/authorize.qtpl:159
+//line web/authorize.qtpl:153
}
diff --git a/web/baseof.qtpl b/web/baseof.qtpl
index 5578363..ec626d7 100644
--- a/web/baseof.qtpl
+++ b/web/baseof.qtpl
@@ -38,22 +38,18 @@
{% func (p *BaseOf) Head() %}
{% comment %}https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs{% endcomment %}
-
-
-
-
{% endfunc %}
@@ -61,15 +57,12 @@
{% func Template(p Page) %}
-
-
-
+
+
{%= p.Head() %}
diff --git a/web/baseof.qtpl.go b/web/baseof.qtpl.go
index 4b22224..adf9552 100644
--- a/web/baseof.qtpl.go
+++ b/web/baseof.qtpl.go
@@ -153,103 +153,103 @@ func (p *BaseOf) StreamHead(qw422016 *qt422016.Writer) {
qw422016.N().S(` `)
//line web/baseof.qtpl:40
qw422016.N().S(` `)
-//line web/baseof.qtpl:58
+//line web/baseof.qtpl:54
}
-//line web/baseof.qtpl:58
+//line web/baseof.qtpl:54
func (p *BaseOf) WriteHead(qq422016 qtio422016.Writer) {
-//line web/baseof.qtpl:58
+//line web/baseof.qtpl:54
qw422016 := qt422016.AcquireWriter(qq422016)
-//line web/baseof.qtpl:58
+//line web/baseof.qtpl:54
p.StreamHead(qw422016)
-//line web/baseof.qtpl:58
+//line web/baseof.qtpl:54
qt422016.ReleaseWriter(qw422016)
-//line web/baseof.qtpl:58
+//line web/baseof.qtpl:54
}
-//line web/baseof.qtpl:58
+//line web/baseof.qtpl:54
func (p *BaseOf) Head() string {
-//line web/baseof.qtpl:58
+//line web/baseof.qtpl:54
qb422016 := qt422016.AcquireByteBuffer()
-//line web/baseof.qtpl:58
+//line web/baseof.qtpl:54
p.WriteHead(qb422016)
-//line web/baseof.qtpl:58
+//line web/baseof.qtpl:54
qs422016 := string(qb422016.B)
-//line web/baseof.qtpl:58
+//line web/baseof.qtpl:54
qt422016.ReleaseByteBuffer(qb422016)
-//line web/baseof.qtpl:58
+//line web/baseof.qtpl:54
return qs422016
-//line web/baseof.qtpl:58
+//line web/baseof.qtpl:54
}
-//line web/baseof.qtpl:60
+//line web/baseof.qtpl:56
func (p *BaseOf) StreamBody(qw422016 *qt422016.Writer) {
-//line web/baseof.qtpl:60
+//line web/baseof.qtpl:56
}
-//line web/baseof.qtpl:60
+//line web/baseof.qtpl:56
func (p *BaseOf) WriteBody(qq422016 qtio422016.Writer) {
-//line web/baseof.qtpl:60
+//line web/baseof.qtpl:56
qw422016 := qt422016.AcquireWriter(qq422016)
-//line web/baseof.qtpl:60
+//line web/baseof.qtpl:56
p.StreamBody(qw422016)
-//line web/baseof.qtpl:60
+//line web/baseof.qtpl:56
qt422016.ReleaseWriter(qw422016)
-//line web/baseof.qtpl:60
+//line web/baseof.qtpl:56
}
-//line web/baseof.qtpl:60
+//line web/baseof.qtpl:56
func (p *BaseOf) Body() string {
-//line web/baseof.qtpl:60
+//line web/baseof.qtpl:56
qb422016 := qt422016.AcquireByteBuffer()
-//line web/baseof.qtpl:60
+//line web/baseof.qtpl:56
p.WriteBody(qb422016)
-//line web/baseof.qtpl:60
+//line web/baseof.qtpl:56
qs422016 := string(qb422016.B)
-//line web/baseof.qtpl:60
+//line web/baseof.qtpl:56
qt422016.ReleaseByteBuffer(qb422016)
-//line web/baseof.qtpl:60
+//line web/baseof.qtpl:56
return qs422016
-//line web/baseof.qtpl:60
+//line web/baseof.qtpl:56
}
-//line web/baseof.qtpl:62
+//line web/baseof.qtpl:58
func StreamTemplate(qw422016 *qt422016.Writer, p Page) {
-//line web/baseof.qtpl:62
+//line web/baseof.qtpl:58
qw422016.N().S(` `)
-//line web/baseof.qtpl:74
+//line web/baseof.qtpl:61
+ qw422016.N().S(`"> `)
+//line web/baseof.qtpl:67
p.StreamHead(qw422016)
-//line web/baseof.qtpl:74
+//line web/baseof.qtpl:67
qw422016.N().S(` `)
-//line web/baseof.qtpl:76
+//line web/baseof.qtpl:69
p.StreamTitle(qw422016)
-//line web/baseof.qtpl:76
+//line web/baseof.qtpl:69
qw422016.N().S(` `)
-//line web/baseof.qtpl:79
+//line web/baseof.qtpl:72
p.StreamBody(qw422016)
-//line web/baseof.qtpl:79
+//line web/baseof.qtpl:72
qw422016.N().S(` `)
-//line web/baseof.qtpl:82
+//line web/baseof.qtpl:75
var path, vcsRevision string
if bi, ok := debug.ReadBuildInfo(); ok {
@@ -264,94 +264,94 @@ func StreamTemplate(qw422016 *qt422016.Writer, p Page) {
}
}
-//line web/baseof.qtpl:95
+//line web/baseof.qtpl:88
qw422016.N().S(` `)
-//line web/baseof.qtpl:97
+//line web/baseof.qtpl:90
if vcsRevision != "" {
-//line web/baseof.qtpl:97
+//line web/baseof.qtpl:90
qw422016.N().S(` `)
-//line web/baseof.qtpl:106
+//line web/baseof.qtpl:99
}
-//line web/baseof.qtpl:106
+//line web/baseof.qtpl:99
qw422016.N().S(` `)
-//line web/baseof.qtpl:109
+//line web/baseof.qtpl:102
}
-//line web/baseof.qtpl:109
+//line web/baseof.qtpl:102
func WriteTemplate(qq422016 qtio422016.Writer, p Page) {
-//line web/baseof.qtpl:109
+//line web/baseof.qtpl:102
qw422016 := qt422016.AcquireWriter(qq422016)
-//line web/baseof.qtpl:109
+//line web/baseof.qtpl:102
StreamTemplate(qw422016, p)
-//line web/baseof.qtpl:109
+//line web/baseof.qtpl:102
qt422016.ReleaseWriter(qw422016)
-//line web/baseof.qtpl:109
+//line web/baseof.qtpl:102
}
-//line web/baseof.qtpl:109
+//line web/baseof.qtpl:102
func Template(p Page) string {
-//line web/baseof.qtpl:109
+//line web/baseof.qtpl:102
qb422016 := qt422016.AcquireByteBuffer()
-//line web/baseof.qtpl:109
+//line web/baseof.qtpl:102
WriteTemplate(qb422016, p)
-//line web/baseof.qtpl:109
+//line web/baseof.qtpl:102
qs422016 := string(qb422016.B)
-//line web/baseof.qtpl:109
+//line web/baseof.qtpl:102
qt422016.ReleaseByteBuffer(qb422016)
-//line web/baseof.qtpl:109
+//line web/baseof.qtpl:102
return qs422016
-//line web/baseof.qtpl:109
+//line web/baseof.qtpl:102
}
-//line web/baseof.qtpl:111
+//line web/baseof.qtpl:104
func (p *BaseOf) StreamT(qw422016 *qt422016.Writer, format string, args ...interface{}) {
-//line web/baseof.qtpl:111
+//line web/baseof.qtpl:104
qw422016.N().S(` `)
-//line web/baseof.qtpl:112
+//line web/baseof.qtpl:105
qw422016.E().S(p.Printer.Sprintf(format, args...))
-//line web/baseof.qtpl:112
+//line web/baseof.qtpl:105
qw422016.N().S(` `)
-//line web/baseof.qtpl:113
+//line web/baseof.qtpl:106
}
-//line web/baseof.qtpl:113
+//line web/baseof.qtpl:106
func (p *BaseOf) WriteT(qq422016 qtio422016.Writer, format string, args ...interface{}) {
-//line web/baseof.qtpl:113
+//line web/baseof.qtpl:106
qw422016 := qt422016.AcquireWriter(qq422016)
-//line web/baseof.qtpl:113
+//line web/baseof.qtpl:106
p.StreamT(qw422016, format, args...)
-//line web/baseof.qtpl:113
+//line web/baseof.qtpl:106
qt422016.ReleaseWriter(qw422016)
-//line web/baseof.qtpl:113
+//line web/baseof.qtpl:106
}
-//line web/baseof.qtpl:113
+//line web/baseof.qtpl:106
func (p *BaseOf) T(format string, args ...interface{}) string {
-//line web/baseof.qtpl:113
+//line web/baseof.qtpl:106
qb422016 := qt422016.AcquireByteBuffer()
-//line web/baseof.qtpl:113
+//line web/baseof.qtpl:106
p.WriteT(qb422016, format, args...)
-//line web/baseof.qtpl:113
+//line web/baseof.qtpl:106
qs422016 := string(qb422016.B)
-//line web/baseof.qtpl:113
+//line web/baseof.qtpl:106
qt422016.ReleaseByteBuffer(qb422016)
-//line web/baseof.qtpl:113
+//line web/baseof.qtpl:106
return qs422016
-//line web/baseof.qtpl:113
+//line web/baseof.qtpl:106
}
diff --git a/web/callback.qtpl b/web/callback.qtpl
index 9e5fad5..0b07d99 100644
--- a/web/callback.qtpl
+++ b/web/callback.qtpl
@@ -1,4 +1,6 @@
-{% import "source.toby3d.me/toby3d/auth/internal/domain" %}
+{% import (
+ "source.toby3d.me/toby3d/auth/internal/domain"
+) %}
{% code type CallbackPage struct {
BaseOf
diff --git a/web/callback.qtpl.go b/web/callback.qtpl.go
index 9480636..807b017 100644
--- a/web/callback.qtpl.go
+++ b/web/callback.qtpl.go
@@ -5,72 +5,74 @@
package web
//line web/callback.qtpl:1
-import "source.toby3d.me/toby3d/auth/internal/domain"
+import (
+ "source.toby3d.me/toby3d/auth/internal/domain"
+)
-//line web/callback.qtpl:3
+//line web/callback.qtpl:5
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
-//line web/callback.qtpl:3
+//line web/callback.qtpl:5
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
-//line web/callback.qtpl:3
+//line web/callback.qtpl:5
type CallbackPage struct {
BaseOf
Token *domain.Token
}
-//line web/callback.qtpl:9
+//line web/callback.qtpl:11
func (p *CallbackPage) StreamBody(qw422016 *qt422016.Writer) {
-//line web/callback.qtpl:9
+//line web/callback.qtpl:11
qw422016.N().S(` `)
-//line web/callback.qtpl:10
+//line web/callback.qtpl:12
if p.Token != nil {
-//line web/callback.qtpl:10
+//line web/callback.qtpl:12
qw422016.N().S(` `)
-//line web/callback.qtpl:11
+//line web/callback.qtpl:13
qw422016.E().S(p.Token.Me.String())
-//line web/callback.qtpl:11
+//line web/callback.qtpl:13
qw422016.N().S(`
`)
-//line web/callback.qtpl:12
+//line web/callback.qtpl:14
qw422016.E().S(p.Token.AccessToken)
-//line web/callback.qtpl:12
+//line web/callback.qtpl:14
qw422016.N().S(` `)
-//line web/callback.qtpl:13
+//line web/callback.qtpl:15
}
-//line web/callback.qtpl:13
+//line web/callback.qtpl:15
qw422016.N().S(` `)
-//line web/callback.qtpl:14
+//line web/callback.qtpl:16
}
-//line web/callback.qtpl:14
+//line web/callback.qtpl:16
func (p *CallbackPage) WriteBody(qq422016 qtio422016.Writer) {
-//line web/callback.qtpl:14
+//line web/callback.qtpl:16
qw422016 := qt422016.AcquireWriter(qq422016)
-//line web/callback.qtpl:14
+//line web/callback.qtpl:16
p.StreamBody(qw422016)
-//line web/callback.qtpl:14
+//line web/callback.qtpl:16
qt422016.ReleaseWriter(qw422016)
-//line web/callback.qtpl:14
+//line web/callback.qtpl:16
}
-//line web/callback.qtpl:14
+//line web/callback.qtpl:16
func (p *CallbackPage) Body() string {
-//line web/callback.qtpl:14
+//line web/callback.qtpl:16
qb422016 := qt422016.AcquireByteBuffer()
-//line web/callback.qtpl:14
+//line web/callback.qtpl:16
p.WriteBody(qb422016)
-//line web/callback.qtpl:14
+//line web/callback.qtpl:16
qs422016 := string(qb422016.B)
-//line web/callback.qtpl:14
+//line web/callback.qtpl:16
qt422016.ReleaseByteBuffer(qb422016)
-//line web/callback.qtpl:14
+//line web/callback.qtpl:16
return qs422016
-//line web/callback.qtpl:14
+//line web/callback.qtpl:16
}
diff --git a/web/error.qtpl b/web/error.qtpl
index da9de03..026da32 100644
--- a/web/error.qtpl
+++ b/web/error.qtpl
@@ -25,8 +25,7 @@
{% endif %}
{% if err.URI != "" %}
-
diff --git a/web/error.qtpl.go b/web/error.qtpl.go
index ba08b29..9d0a741 100644
--- a/web/error.qtpl.go
+++ b/web/error.qtpl.go
@@ -100,59 +100,59 @@ func (p *ErrorPage) StreamBody(qw422016 *qt422016.Writer) {
if err.URI != "" {
//line web/error.qtpl:27
qw422016.N().S(` `)
-//line web/error.qtpl:33
+//line web/error.qtpl:32
qw422016.E().S(p.T("How do I fix it?"))
-//line web/error.qtpl:33
+//line web/error.qtpl:32
qw422016.N().S(` `)
-//line web/error.qtpl:35
+//line web/error.qtpl:34
}
-//line web/error.qtpl:35
+//line web/error.qtpl:34
qw422016.N().S(` `)
-//line web/error.qtpl:36
+//line web/error.qtpl:35
} else {
-//line web/error.qtpl:36
+//line web/error.qtpl:35
qw422016.N().S(` `)
-//line web/error.qtpl:37
+//line web/error.qtpl:36
qw422016.E().S(p.T("Error"))
-//line web/error.qtpl:37
+//line web/error.qtpl:36
qw422016.N().S(`
`)
-//line web/error.qtpl:38
+//line web/error.qtpl:37
qw422016.E().S(p.Error.Error())
-//line web/error.qtpl:38
+//line web/error.qtpl:37
qw422016.N().S(`
`)
-//line web/error.qtpl:39
+//line web/error.qtpl:38
}
-//line web/error.qtpl:39
+//line web/error.qtpl:38
qw422016.N().S(` `)
-//line web/error.qtpl:41
+//line web/error.qtpl:40
}
-//line web/error.qtpl:41
+//line web/error.qtpl:40
func (p *ErrorPage) WriteBody(qq422016 qtio422016.Writer) {
-//line web/error.qtpl:41
+//line web/error.qtpl:40
qw422016 := qt422016.AcquireWriter(qq422016)
-//line web/error.qtpl:41
+//line web/error.qtpl:40
p.StreamBody(qw422016)
-//line web/error.qtpl:41
+//line web/error.qtpl:40
qt422016.ReleaseWriter(qw422016)
-//line web/error.qtpl:41
+//line web/error.qtpl:40
}
-//line web/error.qtpl:41
+//line web/error.qtpl:40
func (p *ErrorPage) Body() string {
-//line web/error.qtpl:41
+//line web/error.qtpl:40
qb422016 := qt422016.AcquireByteBuffer()
-//line web/error.qtpl:41
+//line web/error.qtpl:40
p.WriteBody(qb422016)
-//line web/error.qtpl:41
+//line web/error.qtpl:40
qs422016 := string(qb422016.B)
-//line web/error.qtpl:41
+//line web/error.qtpl:40
qt422016.ReleaseByteBuffer(qb422016)
-//line web/error.qtpl:41
+//line web/error.qtpl:40
return qs422016
-//line web/error.qtpl:41
+//line web/error.qtpl:40
}
diff --git a/web/home.qtpl b/web/home.qtpl
index 9d7da85..5904e8b 100644
--- a/web/home.qtpl
+++ b/web/home.qtpl
@@ -1,4 +1,6 @@
-{% import "source.toby3d.me/toby3d/auth/internal/domain" %}
+{% import (
+ "source.toby3d.me/toby3d/auth/internal/domain"
+) %}
{% code type HomePage struct {
BaseOf
@@ -16,8 +18,7 @@
{% func (p *HomePage) Body() %}
-
-