feat: add OTP to user model
This commit is contained in:
parent
93e7563bed
commit
9d25690d72
|
@ -19,6 +19,10 @@ type User struct {
|
|||
Uploads []Upload
|
||||
LastLogin *time.Time
|
||||
LastLoginIP string
|
||||
OTPEnabled bool `gorm:"default:false;"`
|
||||
OTPVerified bool `gorm:"default:false;"`
|
||||
OTPSecret string
|
||||
OTPAuthUrl string
|
||||
}
|
||||
|
||||
func (u *User) BeforeUpdate(tx *gorm.DB) error {
|
||||
|
|
Loading…
Reference in New Issue