diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2019-10-22 05:12:10 -0300 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-10-22 09:12:10 +0100 |
commit | 0032278a46302d9977ce46c975d28aa7f98ade04 (patch) | |
tree | 005afea9e0c792fe08e92e89f558c490f22b183c /services | |
parent | ccf5298a2c4e9137fbf070e07111d7e90ae5f8ab (diff) | |
download | gitea-0032278a46302d9977ce46c975d28aa7f98ade04.tar.gz gitea-0032278a46302d9977ce46c975d28aa7f98ade04.zip |
Allow externalID to be UUID (#8551) (#8624)
Signed-off-by: Wenxuan Zhao <viz@linux.com>
Diffstat (limited to 'services')
-rw-r--r-- | services/externalaccount/user.go | 6 |
1 files changed, 1 insertions, 5 deletions
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 { |