Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthIdentity ¶
AuthIdentity auth identity session model
func (AuthIdentity) AormNonFieldStructor ¶
func (AuthIdentity) AormNonFieldStructor()
func (*AuthIdentity) GetAuthBasic ¶
func (au *AuthIdentity) GetAuthBasic() *Basic
func (*AuthIdentity) SetAuthBasic ¶
func (au *AuthIdentity) SetAuthBasic(basic Basic)
type AuthIdentityInterface ¶
func NewIdentityInterface ¶
func NewIdentityInterface(identityModel interface{}) AuthIdentityInterface
type Basic ¶
type Basic struct { aorm.Model Provider string // phone, email, wechat, github... UID string `sql:"column:uid;unique"` EncryptedPassword aorm.ProtectedString `aorm:"type:text"` UserID string ConfirmedAt *time.Time ExpireAt *time.Time LastLoginAt *time.Time IsAdmin bool LimitAccess uint64 `sql:"not null;default:0"` SignCount uint64 `sql:"not null;default:0"` }
Basic basic information about auth identity
type Plugin ¶
type Plugin struct { db.DBNames plug.EventDispatcher }
func (*Plugin) OnRegister ¶
func (p *Plugin) OnRegister()
Click to show internal directories.
Click to hide internal directories.