aboutsummaryrefslogtreecommitdiff
path: root/internal/route/repo/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/repo/http.go')
-rw-r--r--internal/route/repo/http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/repo/http.go b/internal/route/repo/http.go
index e5a7570d..b5bbefc1 100644
--- a/internal/route/repo/http.go
+++ b/internal/route/repo/http.go
@@ -131,7 +131,7 @@ func HTTPContexter() macaron.Handler {
// If username and password combination failed, try again using username as a token.
if authUser == nil {
- token, err := db.AccessTokens.GetBySHA(authUsername)
+ token, err := db.AccessTokens.GetBySHA1(authUsername)
if err != nil {
if db.IsErrAccessTokenNotExist(err) {
askCredentials(c, http.StatusUnauthorized, "")