aboutsummaryrefslogtreecommitdiff
path: root/internal/route/user/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/user/auth.go')
-rw-r--r--internal/route/user/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/user/auth.go b/internal/route/user/auth.go
index b3b785c2..cae46853 100644
--- a/internal/route/user/auth.go
+++ b/internal/route/user/auth.go
@@ -210,7 +210,7 @@ func LoginTwoFactorPost(c *context.Context) {
return
}
- t, err := db.TwoFactors.GetByUserID(userID)
+ t, err := db.TwoFactors.GetByUserID(c.Req.Context(), userID)
if err != nil {
c.Error(err, "get two factor by user ID")
return