aboutsummaryrefslogtreecommitdiff
path: root/internal/auth/auth.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-04-11 01:25:19 +0800
committerGitHub <noreply@github.com>2020-04-11 01:25:19 +0800
commit62dda96159055ff9d485078f257445b964eb5220 (patch)
treea8bd161dc92c368bee0e6b58797e23278565cd8b /internal/auth/auth.go
parent5753d4cb87388c247e91eaf3ce641d309a45e760 (diff)
access_token: migrate to GORM and add tests (#6086)
* access_token: migrate to GORM * Add tests * Fix tests * Fix test clock
Diffstat (limited to 'internal/auth/auth.go')
-rw-r--r--internal/auth/auth.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/auth/auth.go b/internal/auth/auth.go
index 43d7f2e5..fe4ad679 100644
--- a/internal/auth/auth.go
+++ b/internal/auth/auth.go
@@ -6,7 +6,6 @@ package auth
import (
"strings"
- "time"
"github.com/go-macaron/session"
gouuid "github.com/satori/go.uuid"
@@ -55,7 +54,6 @@ func SignedInID(c *macaron.Context, sess session.Store) (_ int64, isTokenAuth bo
}
return 0, false
}
- t.Updated = time.Now()
if err = db.AccessTokens.Save(t); err != nil {
log.Error("UpdateAccessToken: %v", err)
}