package
Version:
v0.0.0-...-1c7d376
Opens a new window with list of versions in this module.
Published: Dec 19, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Login(c *fiber.Ctx) error
func Register(c *fiber.Ctx) error
Register handles the registration of a new user.
func ResendCode(c *fiber.Ctx) error
func Verify(c *fiber.Ctx) error
type LoginDTO struct {
Email string `json:"email" validate:"required,email,max=512"`
Password string `json:"password" validate:"required,min=8"`
Captcha string `json:"captcha" validate:""`
}
type RegisterDTO struct {
Username string `json:"username" validate:"required,min=3,max=32,ascii,lowercase"`
Email string `json:"email" validate:"required,email,max=512"`
Password string `json:"password" validate:"required,min=8"`
Captcha string `json:"captcha" validate:""`
}
RegisterDTO defines the structure for registration request data.
type ResendDTO struct {
Email string `json:"email" validate:"required,email,max=512"`
}
type VerifyDTO struct {
Code string `json:"code" validate:"required"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.