auth

package
v0.0.0-...-d400468 Latest Latest
Warning

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

Go to latest
Published: May 21, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleLogin

func HandleLogin(c *gin.Context) (string, error)

Authenticates user and returns signed JWT

func HandleSignup

func HandleSignup(c *gin.Context) (string, model.User, error)

Create a new user and log them in

Types

type Credentials

type Credentials struct {
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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