From 9d25690d725188b1d241b9b96e526fbe304c4c27 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 13 Feb 2024 23:21:53 -0500 Subject: [PATCH] feat: add OTP to user model --- db/models/user.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/models/user.go b/db/models/user.go index 8e06cf5..bce7caf 100644 --- a/db/models/user.go +++ b/db/models/user.go @@ -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 {