AuthController

package
v0.0.0-...-80a4a0d Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginHandler

func LoginHandler(c *fiber.Ctx) error

func LogoutHandler

func LogoutHandler(c *fiber.Ctx) error

func RegisterHandler

func RegisterHandler(c *fiber.Ctx) error

func UserHandler

func UserHandler(c *fiber.Ctx) error

Types

type UserLogin

type UserLogin struct {
	Email    string `json:"email"`
	Password string `json:"password"`
	Remember bool   `json:"remember"`
}

type UserRegister

type UserRegister struct {
	Name     string `json:"name"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Repeat   string `json:"repeat"`
}

Jump to

Keyboard shortcuts

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