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 0fd9617b..388dde0c 100644
--- a/internal/route/lfs/route.go
+++ b/internal/route/lfs/route.go
@@ -72,7 +72,7 @@ func authenticate() macaron.Handler {
// If username and password authentication failed, try again using username as an access token.
if auth.IsErrBadCredentials(err) {
- token, err := db.AccessTokens.GetBySHA(username)
+ token, err := db.AccessTokens.GetBySHA1(username)
if err != nil {
if db.IsErrAccessTokenNotExist(err) {
askCredentials(c.Resp)