diff options
Diffstat (limited to 'internal/route/repo/http.go')
-rw-r--r-- | internal/route/repo/http.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/repo/http.go b/internal/route/repo/http.go index 89c7fa24..e8e1ac15 100644 --- a/internal/route/repo/http.go +++ b/internal/route/repo/http.go @@ -153,7 +153,7 @@ func HTTPContexter() macaron.Handler { return } } - } else if authUser.IsEnabledTwoFactor() { + } else if db.TwoFactors.IsEnabled(c.Req.Context(), authUser.ID) { askCredentials(c, http.StatusUnauthorized, `User with two-factor authentication enabled cannot perform HTTP/HTTPS operations via plain username and password Please create and use personal access token on user settings page`) return |