diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-12-05 18:08:09 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-12-05 18:08:09 -0500 |
commit | 0b785ad96785f62166eb88e7f1415c918e102e71 (patch) | |
tree | a9b5fbb1227d4e08fa0428855343a694e8e24be7 /modules | |
parent | 069486d169d7adac902a310e10b6580857735880 (diff) | |
download | gitea-0b785ad96785f62166eb88e7f1415c918e102e71.tar.gz gitea-0b785ad96785f62166eb88e7f1415c918e102e71.zip |
work on #672
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auth/auth.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/auth/auth.go b/modules/auth/auth.go index 5b7276b48a..450cdb37e9 100644 --- a/modules/auth/auth.go +++ b/modules/auth/auth.go @@ -17,6 +17,7 @@ import ( "github.com/gogits/gogs/modules/base" "github.com/gogits/gogs/modules/log" "github.com/gogits/gogs/modules/setting" + "github.com/gogits/gogs/modules/uuid" ) // SignedInId returns the id of signed in user. @@ -83,7 +84,7 @@ func SignedInUser(req *http.Request, sess session.Store) (*models.User, bool) { if setting.Service.EnableReverseProxyAutoRegister { u := &models.User{ Name: webAuthUser, - Email: webAuthUser + "@gogs.io", + Email: uuid.NewV4().String() + "@localhost", Passwd: webAuthUser, IsActive: true, } |