From cf42cb0ae63c733f93b48a868873c8cd5a2b90bb Mon Sep 17 00:00:00 2001 From: Wenxuan Zhao Date: Wed, 16 Oct 2019 19:06:28 -0700 Subject: Allow externalID to be UUID (#8551) Signed-off-by: Wenxuan Zhao --- services/externalaccount/user.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'services/externalaccount') diff --git a/services/externalaccount/user.go b/services/externalaccount/user.go index 800546f123..45773fdb12 100644 --- a/services/externalaccount/user.go +++ b/services/externalaccount/user.go @@ -5,7 +5,6 @@ package externalaccount import ( - "strconv" "strings" "code.gitea.io/gitea/models" @@ -45,10 +44,7 @@ func LinkAccountToUser(user *models.User, gothUser goth.User) error { return err } - externalID, err := strconv.ParseInt(externalLoginUser.ExternalID, 10, 64) - if err != nil { - return err - } + externalID := externalLoginUser.ExternalID var tp structs.GitServiceType for _, s := range structs.SupportedFullGitService { -- cgit v1.2.3