summaryrefslogtreecommitdiffstats
path: root/models/token.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-02-20 18:13:12 -0500
committerUnknwon <u@gogs.io>2016-02-20 18:13:12 -0500
commitac78bae7b5807c1f71534bddc1a9a3921154be4c (patch)
treeddc9894562a94710d2e4b089f23f23ff8656e54c /models/token.go
parent926e75d72126be97f9974976abfb46449a53f3c6 (diff)
downloadgitea-ac78bae7b5807c1f71534bddc1a9a3921154be4c.tar.gz
gitea-ac78bae7b5807c1f71534bddc1a9a3921154be4c.zip
Replace uuid module with original package
Diffstat (limited to 'models/token.go')
-rw-r--r--models/token.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/models/token.go b/models/token.go
index 136753c324..adf50a4321 100644
--- a/models/token.go
+++ b/models/token.go
@@ -7,8 +7,9 @@ package models
import (
"time"
+ gouuid "github.com/satori/go.uuid"
+
"github.com/gogits/gogs/modules/base"
- "github.com/gogits/gogs/modules/uuid"
)
// AccessToken represents a personal access token.
@@ -25,7 +26,7 @@ type AccessToken struct {
// NewAccessToken creates new access token.
func NewAccessToken(t *AccessToken) error {
- t.Sha1 = base.EncodeSha1(uuid.NewV4().String())
+ t.Sha1 = base.EncodeSha1(gouuid.NewV4().String())
_, err := x.Insert(t)
return err
}