Files
fiber-sessions/app/templates/types.go
2024-02-06 15:39:55 +01:00

31 lines
562 B
Go

package templates
import "fiber-sessions/app/handlers/usersession"
type PageContext struct {
Title string
ActivePage string
RequestSession *usersession.RequestSession
}
type ValidateFormContent struct {
Validated bool
StrValue string
HasStrValueError bool
StrValueError string
NumValue string
HasNumValueError bool
NumValueError string
}
type LoginFormValidationContent struct {
Validated bool
Username string
UsernameError string
Password string
PasswordError string
LoginError string
}