1
0
Fork 0
forked from forgejo/forgejo

Replace uuid module with original package

This commit is contained in:
Unknwon 2016-02-20 18:13:12 -05:00
parent 926e75d721
commit ac78bae7b5
11 changed files with 12 additions and 912 deletions

View file

@ -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
}