summaryrefslogtreecommitdiffstats
path: root/modules/auth/auth.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 /modules/auth/auth.go
parent926e75d72126be97f9974976abfb46449a53f3c6 (diff)
downloadgitea-ac78bae7b5807c1f71534bddc1a9a3921154be4c.tar.gz
gitea-ac78bae7b5807c1f71534bddc1a9a3921154be4c.zip
Replace uuid module with original package
Diffstat (limited to 'modules/auth/auth.go')
-rw-r--r--modules/auth/auth.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/auth/auth.go b/modules/auth/auth.go
index 7c4cfafcf4..0c1f2fbdc1 100644
--- a/modules/auth/auth.go
+++ b/modules/auth/auth.go
@@ -12,13 +12,13 @@ import (
"github.com/Unknwon/com"
"github.com/go-macaron/binding"
"github.com/go-macaron/session"
+ gouuid "github.com/satori/go.uuid"
"gopkg.in/macaron.v1"
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/modules/base"
"github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/setting"
- "github.com/gogits/gogs/modules/uuid"
)
func IsAPIPath(url string) bool {
@@ -102,7 +102,7 @@ func SignedInUser(ctx *macaron.Context, sess session.Store) (*models.User, bool)
if setting.Service.EnableReverseProxyAutoRegister {
u := &models.User{
Name: webAuthUser,
- Email: uuid.NewV4().String() + "@localhost",
+ Email: gouuid.NewV4().String() + "@localhost",
Passwd: webAuthUser,
IsActive: true,
}