Checking to see if a user is logged in, and logging a user our

This commit is contained in:
2024-07-22 10:00:17 +02:00
parent a0853cf880
commit 96f81418ec
5 changed files with 26 additions and 9 deletions

View File

@ -4,13 +4,14 @@ import "go-udemy-web-1/internal/forms"
// TemplateData holds data sent from handlers to templates
type TemplateData struct {
StringMap map[string]string
IntMap map[string]int
FloatMap map[string]float32
Data map[string]interface{}
CSRFToken string
Flash string
Warning string
Error string
Form *forms.Form
StringMap map[string]string
IntMap map[string]int
FloatMap map[string]float32
Data map[string]interface{}
Form *forms.Form
CSRFToken string
Flash string
Warning string
Error string
IsAuthenticated int
}