account

package
v0.0.0-...-783c0ba Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindApi

func BindApi(c *core.Context)

用户注册.[移除用户注册,直接叫用户绑定] 注意:如果用户输入的账号密码跟现有的账号密码相一致,则表示绑定账号,否则表示注册新账号。

func FindPasswordApi

func FindPasswordApi(c *core.Context)

func FindPasswordHtml

func FindPasswordHtml(c *core.Context)

找回密码.

func LoginApi

func LoginApi(c *core.Context)

func LoginHtml

func LoginHtml(c *core.Context)

Login 用户登录.

func Logout

func Logout(c *core.Context)

Logout 退出登录.

func Note

func Note(c *core.Context)

记录笔记

func OauthHtml

func OauthHtml(c *core.Context)

第三方登录回调 封装一个内部调用的函数,loginByMemberId

func SetSecureCookie

func SetSecureCookie(c *gin.Context, Secret, name, value string, others ...interface{})

SetSecureCookie Set Secure cookie for response.

func ValidEmail

func ValidEmail(c *core.Context)

校验邮件并修改密码.

Types

type ReqBind

type ReqBind struct {
	Account   string `form:"account"`
	Nickname  string `form:"nickname"`
	Password1 string `form:"password1"`
	Password2 string `form:"password2"`
	Email     string `form:"email"`
	OauthType string `form:"oauth"`
	OauthId   string `form:"id"`
	Avatar    string `form:"avatar"`
	IsBind    int    `form:"isbind"`
}

Jump to

Keyboard shortcuts

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