aboutsummaryrefslogtreecommitdiff
path: root/internal/db/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/user.go')
-rw-r--r--internal/db/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/user.go b/internal/db/user.go
index ebfbf082..1ad4b955 100644
--- a/internal/db/user.go
+++ b/internal/db/user.go
@@ -405,7 +405,7 @@ func (u *User) IsPublicMember(orgId int64) bool {
// IsEnabledTwoFactor returns true if user has enabled two-factor authentication.
func (u *User) IsEnabledTwoFactor() bool {
- return TwoFactors.IsUserEnabled(u.ID)
+ return TwoFactors.IsUserEnabled(context.TODO(), u.ID)
}
func (u *User) getOrganizationCount(e Engine) (int64, error) {