feat: add OTP to user model

This commit is contained in:
Derrick Hammer 2024-02-13 23:21:53 -05:00
parent 93e7563bed
commit 9d25690d72
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ type User struct {
Uploads []Upload Uploads []Upload
LastLogin *time.Time LastLogin *time.Time
LastLoginIP string LastLoginIP string
OTPEnabled bool `gorm:"default:false;"`
OTPVerified bool `gorm:"default:false;"`
OTPSecret string
OTPAuthUrl string
} }
func (u *User) BeforeUpdate(tx *gorm.DB) error { func (u *User) BeforeUpdate(tx *gorm.DB) error {