user

package
v0.0.0-...-4c53254 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2015 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const (
	AuthTypeGuest          = token.AuthTypeGuest
	AuthTypeEmailPassword  = token.AuthTypeEmailPassword
	AuthTypeEmailCheckCode = token.AuthTypeEmailCheckCode
	AuthTypePhonePassword  = token.AuthTypePhonePassword
	AuthTypePhoneCheckCode = token.AuthTypePhoneCheckCode
	AuthTypeOAuthQQ        = token.AuthTypeOAuthQQ
	AuthTypeOAuthWechat    = token.AuthTypeOAuthWechat
	AuthTypeOAuthWeibo     = token.AuthTypeOAuthWeibo
)

Variables

This section is empty.

Functions

func AuthHandler

func AuthHandler(ctx *gin.Context)

认证, 获取token.

uri?auth_type=guest
uri?auth_type=email_password&email=XXX&password=XXX
uri?auth_type=phone_password&phone=XXX&password=XXX
uri?auth_type=email_checkcode&email=XXX&checkcode=XXX
uri?auth_type=phone_checkcode&phone=XXX&checkcode=XXX

Types

This section is empty.

Jump to

Keyboard shortcuts

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