mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-10 16:42:26 +08:00
feat: twofactor bind
This commit is contained in:
@@ -7,11 +7,12 @@ import "time"
|
||||
|
||||
// Account 博客账户
|
||||
type Account struct {
|
||||
Username string `gorm:"column:username;primaryKey" bson:"username"` // 用户名
|
||||
Password string `gorm:"column:password;not null" bson:"password"` // 密码
|
||||
Email string `gorm:"column:email;not null" bson:"email"` // 邮件地址
|
||||
PhoneN string `gorm:"column:phone_n;not null" bson:"phone_n"` // 手机号
|
||||
Address string `gorm:"column:address;not null" bson:"address"` // 地址信息
|
||||
Username string `gorm:"column:username;primaryKey" bson:"username"` // 用户名
|
||||
Password string `gorm:"column:password;not null" bson:"password"` // 密码
|
||||
Email string `gorm:"column:email;not null" bson:"email"` // 邮件地址
|
||||
PhoneN string `gorm:"column:phone_n;not null" bson:"phone_n"` // 手机号
|
||||
Address string `gorm:"column:address;not null" bson:"address"` // 地址信息
|
||||
TwoFactorSecret string `gorm:"column:two_factor_secret" bson:"two_factor_secret"` // 两步验证密钥
|
||||
|
||||
LogoutAt time.Time `gorm:"column:logout_at;not null" bson:"logout_at"` // 登出时间
|
||||
LoginIP string `gorm:"column:login_ip;not null" bson:"login_ip"` // 最近登录IP
|
||||
|
||||
Reference in New Issue
Block a user