chore(auth): #331 add and fix forgot password tests
This commit was merged in pull request #355.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user