This commit is contained in:
lbenedar
2026-03-06 14:44:08 +03:00
parent 894d152aae
commit 94345eff97
6 changed files with 42 additions and 17 deletions

View File

@@ -40,3 +40,7 @@ func (app *application) decodePostForm(r *http.Request, snippetForm any) error {
}
return nil
}
func (app *application) isAuthenticated(r *http.Request) bool {
return app.sessionManager.Exists(r.Context(), "authenticatedUserID")
}