diff options
author | Jan-Willem van der Meer <mail@jewilmeer.nl> | 2014-09-01 15:48:17 +0400 |
---|---|---|
committer | Jan-Willem van der Meer <mail@jewilmeer.nl> | 2014-09-01 16:05:01 +0400 |
commit | 5801d520a75ce03339944d67cfde6cc3c1b05cfc (patch) | |
tree | b207a731ef03dc14b3ac0823556c5eca7c104db3 /lib/gitlab | |
parent | 0ec4abf73c5de8b36c33beba443d998652042ef5 (diff) |
Handle user creation if email is not provided
This fixes #1541
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/oauth/user.rb | 1 |
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 |