summaryrefslogtreecommitdiffstats
path: root/model/gitlab
diff options
context:
space:
mode:
authorArthurH <arthur.halet@orange.com>2016-05-16 14:00:04 +0200
committerChristopher Speller <crspeller@gmail.com>2016-05-16 08:00:04 -0400
commit7fa7bee9fcce79f0d1e709d1cf2484380c96747c (patch)
tree2b59b4ad72fa7b7babaa1e4a143fdf231a1fcb83 /model/gitlab
parentdcba917d6067464094d45c81a82618b1bfe13225 (diff)
downloadchat-7fa7bee9fcce79f0d1e709d1cf2484380c96747c.tar.gz
chat-7fa7bee9fcce79f0d1e709d1cf2484380c96747c.tar.bz2
chat-7fa7bee9fcce79f0d1e709d1cf2484380c96747c.zip
Fix heavy regression on GitLab for version 3.0.0 (#3000)
Fix regression on GitLab
Diffstat (limited to 'model/gitlab')
-rw-r--r--model/gitlab/gitlab.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/model/gitlab/gitlab.go b/model/gitlab/gitlab.go
index fc70dd93f..e189ee68d 100644
--- a/model/gitlab/gitlab.go
+++ b/model/gitlab/gitlab.go
@@ -47,7 +47,8 @@ func userFromGitLabUser(glu *GitLabUser) *model.User {
}
strings.TrimSpace(user.Email)
user.Email = glu.Email
- *user.AuthData = strconv.FormatInt(glu.Id, 10)
+ userId := strconv.FormatInt(glu.Id, 10)
+ user.AuthData = &userId
user.AuthService = model.USER_AUTH_SERVICE_GITLAB
return user