diff options
author | Jan-Willem van der Meer <mail@jewilmeer.nl> | 2014-09-01 13:48:17 +0200 |
---|---|---|
committer | Jan-Willem van der Meer <mail@jewilmeer.nl> | 2014-09-01 13:49:16 +0200 |
commit | 6143cef4c49d5a3e9c8c13a7328dcb6581d664f5 (patch) | |
tree | 1ac11c3d4a236d70951fcfcf5c1ee024106b8090 /lib | |
parent | 4198b58a8c21bf99e370fa3dd1452bdb278a0be9 (diff) | |
download | gitlab-ce-6143cef4c49d5a3e9c8c13a7328dcb6581d664f5.tar.gz |
Handle user creation if email is not provided
This fixes #1541
Diffstat (limited to 'lib')
-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 0056eb3a28b..a252895493b 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 |