Documentation ¶
Overview ¶
Package passport 验证系统
Index ¶
- Variables
- func Install(mod string, db *orm.DB)
- type Func
- type OAuth
- type Passport
- type Password
- func (p *Password) Add(tx *orm.Tx, uid int64, username, pass string) error
- func (p *Password) Change(tx *orm.Tx, uid int64, old, pass string) error
- func (p *Password) Delete(tx *orm.Tx, uid int64) error
- func (p *Password) Set(tx *orm.Tx, uid int64, pass string) error
- func (p *Password) Valid(tx *orm.Tx, username, pass string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExists = errors.New("user already exists") )
Functions ¶
Types ¶
type Func ¶
type Func struct {
// contains filtered or unexported fields
}
type OAuth ¶
type OAuth struct {
// contains filtered or unexported fields
}
TODO: openid
func (*OAuth) AuthorizeURL ¶
type Passport ¶
type Passport struct {
// contains filtered or unexported fields
}
Passport 当前模块对外公开的接口
Click to show internal directories.
Click to hide internal directories.