mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-05 16:56:22 +00:00
⚡ implement email verification feature, add captcha validation middleware, and enhance user authentication flow
This commit is contained in:
8
internal/model/session.go
Normal file
8
internal/model/session.go
Normal file
@ -0,0 +1,8 @@
|
||||
package model
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Session struct {
|
||||
gorm.Model
|
||||
SessionKey string `gorm:"uniqueIndex"` // 会话密钥,唯一索引
|
||||
}
|
Reference in New Issue
Block a user