Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Willem van der Meer <mail@jewilmeer.nl>2014-09-01 15:48:17 +0400
committerJan-Willem van der Meer <mail@jewilmeer.nl>2014-09-01 16:05:01 +0400
commit5801d520a75ce03339944d67cfde6cc3c1b05cfc (patch)
treeb207a731ef03dc14b3ac0823556c5eca7c104db3 /lib/gitlab
parent0ec4abf73c5de8b36c33beba443d998652042ef5 (diff)
Handle user creation if email is not provided
This fixes #1541
Diffstat (limited to 'lib/gitlab')
-rw-r--r--lib/gitlab/oauth/user.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/oauth/user.rb b/lib/gitlab/oauth/user.rb
index 8c426d810c2..5efd5799f9f 100644
--- a/lib/gitlab/oauth/user.rb
+++ b/lib/gitlab/oauth/user.rb
@@ -73,6 +73,7 @@ module Gitlab
end
def email
+ return unless auth.info.respond_to?(:email)
auth.info.email.downcase unless auth.info.email.nil?
end