Back to godoc.org

Package user

v0.0.0-...-4c53254
Latest Go to latest

The latest major version is .

Published: Oct 14, 2015 | License: MIT | Module: github.com/aiyi/go-user

Index

Constants

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
)

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
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier