email

package
v0.0.0-...-1c7d376 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(c *fiber.Ctx) error

func Register

func Register(c *fiber.Ctx) error

Register handles the registration of a new user.

func ResendCode

func ResendCode(c *fiber.Ctx) error

func Verify

func Verify(c *fiber.Ctx) error

Types

type LoginDTO

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

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

type ResendDTO struct {
	Email string `json:"email" validate:"required,email,max=512"`
}

type VerifyDTO

type VerifyDTO struct {
	Code string `json:"code" validate:"required"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL