From 5e32058c13f34b46c69b7cdee6ccc0b7fe3b6df3 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Sat, 11 Jun 2022 11:54:11 +0800 Subject: db: use `context` and go-mockgen for `TwoFactorsStore` (#7045) --- internal/db/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/db/user.go') 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) { -- cgit v1.2.3