aboutsummaryrefslogtreecommitdiffstats
path: root/models/external_login_user.go
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 /models/external_login_user.go
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 'models/external_login_user.go')
-rw-r--r--models/external_login_user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/external_login_user.go b/models/external_login_user.go
index 59c3732184..f6357b8274 100644
--- a/models/external_login_user.go
+++ b/models/external_login_user.go
@@ -168,7 +168,7 @@ func FindExternalUsersByProvider(opts FindExternalUserOptions) ([]ExternalLoginU
}
// UpdateMigrationsByType updates all migrated repositories' posterid from gitServiceType to replace originalAuthorID to posterID
-func UpdateMigrationsByType(tp structs.GitServiceType, externalUserID, userID int64) error {
+func UpdateMigrationsByType(tp structs.GitServiceType, externalUserID string, userID int64) error {
if err := UpdateIssuesMigrationsByType(tp, externalUserID, userID); err != nil {
return err
}