mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Use google/uuid to instead satori/go.uuid (#11943)
Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
		| @@ -10,6 +10,7 @@ import ( | ||||
| 	"code.gitea.io/gitea/modules/log" | ||||
| 	"code.gitea.io/gitea/modules/setting" | ||||
|  | ||||
| 	uuid "github.com/google/uuid" | ||||
| 	"github.com/lafriks/xormstore" | ||||
| 	"github.com/markbates/goth" | ||||
| 	"github.com/markbates/goth/gothic" | ||||
| @@ -25,7 +26,6 @@ import ( | ||||
| 	"github.com/markbates/goth/providers/openidConnect" | ||||
| 	"github.com/markbates/goth/providers/twitter" | ||||
| 	"github.com/markbates/goth/providers/yandex" | ||||
| 	uuid "github.com/satori/go.uuid" | ||||
| 	"xorm.io/xorm" | ||||
| ) | ||||
|  | ||||
| @@ -61,7 +61,7 @@ func Init(x *xorm.Engine) error { | ||||
| 	gothic.Store = store | ||||
|  | ||||
| 	gothic.SetState = func(req *http.Request) string { | ||||
| 		return uuid.NewV4().String() | ||||
| 		return uuid.New().String() | ||||
| 	} | ||||
|  | ||||
| 	gothic.GetProviderName = func(req *http.Request) (string, error) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user