summaryrefslogtreecommitdiffstats
path: root/services/externalaccount
diff options
context:
space:
mode:
authorWenxuan Zhao <viz@linux.com>2019-10-16 19:06:28 -0700
committerLunny Xiao <xiaolunwen@gmail.com>2019-10-17 10:06:28 +0800
commitcf42cb0ae63c733f93b48a868873c8cd5a2b90bb (patch)
tree54abbd469f6655ea124820ca9821e05af39a9105 /services/externalaccount
parentc43feedb96bd0ccf238bea59803ea412108b4000 (diff)
downloadgitea-cf42cb0ae63c733f93b48a868873c8cd5a2b90bb.tar.gz
gitea-cf42cb0ae63c733f93b48a868873c8cd5a2b90bb.zip
Allow externalID to be UUID (#8551)
Signed-off-by: Wenxuan Zhao <viz@linux.com>
Diffstat (limited to 'services/externalaccount')
-rw-r--r--services/externalaccount/user.go6
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 {