增加密码自助重置功能

This commit is contained in:
kdsun
2025-03-07 23:14:05 +08:00
parent b562686f68
commit 7acd5f204f
9 changed files with 14214 additions and 2 deletions

View File

@@ -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"`
}