auth

package
v0.0.0-...-f49c732 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfirmEmail

func ConfirmEmail(c echo.Context) error

func ConfirmToken

func ConfirmToken(c echo.Context) error

func DeleteUser

func DeleteUser(c echo.Context) error

func LogIn

func LogIn(c echo.Context) error

func SignUp

func SignUp(c echo.Context) error

Types

type DeleteUserRequest

type DeleteUserRequest struct {
	Email string `json:"email" validate:"required,email"`
}

type LogInRequest

type LogInRequest struct {
	Email    string `json:"email" validate:"email,required,min=1,max=100"`
	Password string `json:"password" validate:"min=8,max=80,required"`
}

type SignUpRequest

type SignUpRequest struct {
	Username string `json:"username" validate:"min=1,max=100,required"`
	Password string `json:"password" validate:"min=8,max=80,required"`
	Email    string `json:"email" validate:"email,required,min=1,max=100"`
}

Jump to

Keyboard shortcuts

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