auth

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserEmailAlreadyExistsError = errors.New("user email already exists")
View Source
var UserNameAlreadyExistsError = errors.New("user name already exists")

Functions

func Login

func Login(db *model.DBEngine) gin.HandlerFunc

Login check if user's name, email exists and password right

func LoginPage

func LoginPage(c *gin.Context)

func LoginV2

func LoginV2(db *model.DBEngine) gin.HandlerFunc

LoginV2 check if user's name, email exists and password right

func Logout

func Logout(c *gin.Context)

Logout user exit

func LogoutV2

func LogoutV2(db *model.DBEngine) gin.HandlerFunc

LogoutV2 do user exit

func Register

func Register(db *model.DBEngine) gin.HandlerFunc

Register take the account and password to create a new user

func RegisterPage

func RegisterPage(c *gin.Context)

func RegisterV2

func RegisterV2(db *model.DBEngine) gin.HandlerFunc

RegisterV2 take the account and password to create a new user

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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