aboutsummaryrefslogtreecommitdiff
path: root/internal/route/lfs/route.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/lfs/route.go')
-rw-r--r--internal/route/lfs/route.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/lfs/route.go b/internal/route/lfs/route.go
index bdacc6da..b2ab2b0c 100644
--- a/internal/route/lfs/route.go
+++ b/internal/route/lfs/route.go
@@ -67,7 +67,7 @@ func authenticate() macaron.Handler {
return
}
- if err == nil && user.IsEnabledTwoFactor() {
+ if err == nil && db.TwoFactors.IsEnabled(c.Req.Context(), user.ID) {
c.Error(http.StatusBadRequest, "Users with 2FA enabled are not allowed to authenticate via username and password.")
return
}