loginRequests

package
v0.0.0-...-659eabc Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package loginRequests contains all models regarding login and registration requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserAuth

type UserAuth struct {
	Type      string `json:"Type" xml:"Type" form:"Type"`
	API_Token string `json:"API_Token" xml:"API_Token" form:"API_Token"`
	Username  string `json:"Username" xml:"Username" form:"Username"`
	Password  string `json:"Password" xml:"Username" form:"Password"`
}

UserAuth represents an auth try to the system.

func (*UserAuth) FromForm

func (receiver *UserAuth) FromForm(c echo.Context) error

FromForm Converts from a submitted form (or request) to his struct.

Does not check for the validity of the items inside the struct (e.g. tokens)

type UserRegistration

type UserRegistration struct {
	Type      string `json:"Type" xml:"Type" form:"Type"`
	API_Token string `json:"API_Token" xml:"API_Token" form:"API_Token"`
	Username  string `json:"Username" xml:"Username" form:"Username"`
	Password  string `json:"Password" xml:"Password" form:"Password"`
}

Registration represents a request to register into the system.

func (*UserRegistration) FromForm

func (receiver *UserRegistration) FromForm(c echo.Context) error

FromForm Converts from a submitted form (or request) to his struct.

Does not check for the validity of the items inside the struct (e.g. tokens)

Jump to

Keyboard shortcuts

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