Skip to content

Commit 29513ec

Browse files
committed
fixes
1 parent 648b17c commit 29513ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

recipe/thirdparty/providers/gitlab.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ package providers
1717

1818
import (
1919
"encoding/json"
20+
"fmt"
2021
"net/http"
2122
"strings"
2223

@@ -97,7 +98,7 @@ func GitLab(config tpmodels.GitLabConfig) tpmodels.TypeProvider {
9798
return tpmodels.UserInfo{}, err
9899
}
99100
userInfo := response.(map[string]interface{})
100-
ID := userInfo["id"].(string)
101+
ID := fmt.Sprint(userInfo["id"]) // the id returned by gitlab is a number, so we convert to a string
101102
_, emailExists := userInfo["email"]
102103
if !emailExists {
103104
return tpmodels.UserInfo{

0 commit comments

Comments
 (0)