Merge pull request #7141 from PuzzleFlow/uid_should_always_be_string

Ensure that uid in OAuth is a string
This commit is contained in:
Dmitriy Zaporozhets 2014-07-23 20:26:16 +03:00
commit 931f27ae32
1 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,9 @@ module Gitlab
end
def uid
auth.info.uid || auth.uid
uid = auth.info.uid || auth.uid
uid = uid.to_s unless uid.nil?
uid
end
def email