auth

package
v0.0.0-...-7f21696 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignedInUser

func SignedInUser(ctx *macaron.Context) (*models.User, error)

SignedInUser returns models.User instance if user exists

Types

type Oauth2

type Oauth2 struct {
	Code     string `json:"code"`
	Provider string `json:"provider"`
}

type ResponseAuth

type ResponseAuth struct {
	Success bool   `json:"success"`
	Token   string `json:"token"`
}

type SignIn

type SignIn struct {
	Uname string `json:"_username"`
	Pass  string `json:"_password"`
}

type SignUp

type SignUp struct {
	Email string `json:"_email"`
	Pass  string `json:"_password"`
	Token string `json:"_token"`
	Uname string `json:"_username"`
}

Jump to

Keyboard shortcuts

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