summaryrefslogtreecommitdiffstats
path: root/models/oauth2_application.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-06-18 17:18:44 +0800
committerGitHub <noreply@github.com>2020-06-18 17:18:44 +0800
commit1dd3f19ee381d3a3554828a37282fd75ba3073ee (patch)
treef3ef01fcc5825e28b2e57d8da8c491555ef15fe4 /models/oauth2_application.go
parent03ba974481296b76f87cbd756e41ecf5be9d006b (diff)
downloadgitea-1dd3f19ee381d3a3554828a37282fd75ba3073ee.tar.gz
gitea-1dd3f19ee381d3a3554828a37282fd75ba3073ee.zip
Use google/uuid to instead satori/go.uuid (#11943)
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'models/oauth2_application.go')
-rw-r--r--models/oauth2_application.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/oauth2_application.go b/models/oauth2_application.go
index eba03d9480..1c7937685c 100644
--- a/models/oauth2_application.go
+++ b/models/oauth2_application.go
@@ -16,7 +16,7 @@ import (
"code.gitea.io/gitea/modules/timeutil"
"github.com/dgrijalva/jwt-go"
- uuid "github.com/satori/go.uuid"
+ uuid "github.com/google/uuid"
"github.com/unknwon/com"
"golang.org/x/crypto/bcrypt"
"xorm.io/xorm"
@@ -174,7 +174,7 @@ func CreateOAuth2Application(opts CreateOAuth2ApplicationOptions) (*OAuth2Applic
}
func createOAuth2Application(e Engine, opts CreateOAuth2ApplicationOptions) (*OAuth2Application, error) {
- clientID := uuid.NewV4().String()
+ clientID := uuid.New().String()
app := &OAuth2Application{
UID: opts.UserID,
Name: opts.Name,