From 3d507d36ea2c7955d98a16b85cb7bc02c8923caa Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Mon, 15 Apr 2024 23:17:09 +0200 Subject: User login & logout --- view/main.templ | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'view/main.templ') diff --git a/view/main.templ b/view/main.templ index 64a365c..06cb872 100644 --- a/view/main.templ +++ b/view/main.templ @@ -1,6 +1,10 @@ package view -templ Main(contents templ.Component) { +import ( + "stevenlr.com/timer/model" +) + +templ Main(contents templ.Component, currentUser *model.User) { @@ -11,6 +15,7 @@ templ Main(contents templ.Component) { + @LoginForm(currentUser) @contents -- cgit