chore(auth): #331 add and fix forgot password tests
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 47s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 1m9s

This commit was merged in pull request #355.
This commit is contained in:
2024-12-25 22:57:01 +01:00
parent 42a910df4b
commit b0f183aeed
3 changed files with 155 additions and 8 deletions

View File

@@ -36,13 +36,15 @@ func (handler IndexImpl) handleIndexAnd404() http.HandlerFunc {
var comp templ.Component
var status int
if r.URL.Path != "/" {
comp = template.NotFound()
w.WriteHeader(http.StatusNotFound)
status = http.StatusNotFound
} else {
comp = template.Index()
status = http.StatusOK
}
handler.render.RenderLayout(r, w, comp, user)
handler.render.RenderLayoutWithStatus(r, w, comp, user, status)
}
}