User login & logout

This commit is contained in:
2024-04-15 23:17:09 +02:00
parent 6ceda23af4
commit 3d507d36ea
6 changed files with 282 additions and 8 deletions

View File

@ -1,6 +1,10 @@
package view
templ Main(contents templ.Component) {
import (
"stevenlr.com/timer/model"
)
templ Main(contents templ.Component, currentUser *model.User) {
<!DOCTYPE html>
<html>
<head>
@ -11,6 +15,7 @@ templ Main(contents templ.Component) {
<script src="/static/response-targets.js"></script>
</head>
<body hx-boost="true" hx-ext="response-targets">
@LoginForm(currentUser)
@contents
</body>
</html>