handlers(types): add validation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-05-28 18:57:37 +02:00
parent 11de8de558
commit e0a7656b2b
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -4,14 +4,14 @@
package handlers
type userSignin struct {
Username string `form:"username" json:"username"`
Password string `form:"password" json:"password"`
Username string `form:"username" json:"username" validate:"required,username"`
Password string `form:"password" json:"password" validate:"required,password"`
}
type userSignup struct {
Username string `form:"username" json:"username"`
Email string `form:"email" json:"email"`
Password string `form:"password" json:"password"`
Username string `form:"username" json:"username" validate:"required,username"`
Email string `form:"email" json:"email" validate:"required,email"`
Password string `form:"password" json:"password" validate:"required,password"`
}
type userCreate struct {