aboutsummaryrefslogtreecommitdiff
path: root/internal/context/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/context/auth.go')
-rw-r--r--internal/context/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/context/auth.go b/internal/context/auth.go
index 5f64161a..bd2b5fb7 100644
--- a/internal/context/auth.go
+++ b/internal/context/auth.go
@@ -130,7 +130,7 @@ func authenticatedUserID(c *macaron.Context, sess session.Store) (_ int64, isTok
// Let's see if token is valid.
if len(tokenSHA) > 0 {
- t, err := db.AccessTokens.GetBySHA(tokenSHA)
+ t, err := db.AccessTokens.GetBySHA1(tokenSHA)
if err != nil {
if !db.IsErrAccessTokenNotExist(err) {
log.Error("GetAccessTokenBySHA: %v", err)