aboutsummaryrefslogtreecommitdiff
path: root/pkg/view
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/view')
-rw-r--r--pkg/view/auth.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/view/auth.go b/pkg/view/auth.go
index 6b096d9..5d73b22 100644
--- a/pkg/view/auth.go
+++ b/pkg/view/auth.go
@@ -8,6 +8,7 @@ import (
"git.sr.ht/~gabrielgio/img"
"git.sr.ht/~gabrielgio/img/pkg/ext"
"git.sr.ht/~gabrielgio/img/pkg/service"
+ "git.sr.ht/~gabrielgio/img/templates"
)
type AuthView struct {
@@ -21,7 +22,8 @@ func NewAuthView(userController *service.AuthController) *AuthView {
}
func (v *AuthView) LoginView(ctx *fasthttp.RequestCtx) error {
- return img.Render[interface{}](ctx, "login.html", nil)
+ templates.WritePageTemplate(ctx, &templates.LoginPage{})
+ return nil
}
func (v *AuthView) Logout(ctx *fasthttp.RequestCtx) error {