webuser

package
v0.0.7-alpha Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Active

func Active(c server.Context) (err error)

func Inactive

func Inactive(c server.Context) (err error)

func Login

func Login(c server.Context) (err error)

func Logout

func Logout(c server.Context) (err error)

func PostLogin

func PostLogin(c server.Context) (err error)

func PostRegister

func PostRegister(c server.Context) (err error)

func Profile

func Profile(c server.Context) (err1 error)

func Register

func Register(c server.Context) (err error)

Types

type LoginData

type LoginData struct {
	Login    string `json:"login"`
	Password string `json:"password"`
}

type RegisterData

type RegisterData struct {
	Username             string `json:"username"`
	Email                string `json:"email"`
	Password             string `json:"password"`
	PasswordConfirmation string `json:"passwordconfirmation"`
}

func (*RegisterData) Parse

func (r *RegisterData) Parse(c server.Context) error

Jump to

Keyboard shortcuts

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