31 lines
562 B
Go
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
|
|
}
|