controllers

package
v0.0.0-...-093d82d Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(c *gin.Context)

func Index

func Index(c *gin.Context)

func LoginForm

func LoginForm(c *gin.Context)

func LoginUser

func LoginUser(c *gin.Context)

func RegisterForm

func RegisterForm(c *gin.Context)

Types

type CreateUserInput

type CreateUserInput struct {
	Username        string `form:"username" binding:"required"`
	Password        string `form:"password" binding:"required"`
	ConfirmPassword string `form:"password2" binding:"required"`

} // UserID will be generated automatically by the database

type LoginUserInput

type LoginUserInput struct {
	ID       int
	Username string `form:"username" binding:"required"`
	Password string `form:"password" binding:"required"`

} // LoginUserID will be generated automatically by the database

Jump to

Keyboard shortcuts

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