mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Replace uuid module with original package
This commit is contained in:
		@@ -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,
 | 
			
		||||
						}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user