mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-09-09 14:28:48 +08:00
增加密码自助重置功能
This commit is contained in:
@@ -118,3 +118,9 @@ type StatsMem struct {
|
||||
Percent float64 `json:"percent" xorm:"Float"`
|
||||
CreatedAt time.Time `json:"created_at" xorm:"DateTime created index"`
|
||||
}
|
||||
|
||||
type PasswordReset struct {
|
||||
Token string `json:"token" xorm:"varchar(60) not null unique"`
|
||||
UserId int `json:"id" xorm:"not null"`
|
||||
ExpiresAt int `json:"expires_at" xorm:"not null"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user