Commit f06a60e2 authored by Jan-Willem van der Meer's avatar Jan-Willem van der Meer

Merge branch 'feature-refactor-oauth-instance-methods' into feature-multi-ldap-servers

parents 049ae5b3 70efa16a
...@@ -31,7 +31,7 @@ module Gitlab ...@@ -31,7 +31,7 @@ module Gitlab
gl_user gl_user
rescue ActiveRecord::RecordInvalid => e rescue ActiveRecord::RecordInvalid => e
log.info "(OAuth) Email #{e.record.errors[:email]}. Username #{e.record.errors[:username]}" log.info "(OAuth) Error saving user: #{gl_user.errors.full_messages}"
return self, e.record.errors return self, e.record.errors
end end
......
...@@ -33,7 +33,7 @@ describe Gitlab::OAuth::AuthHash do ...@@ -33,7 +33,7 @@ describe Gitlab::OAuth::AuthHash do
context "email not provided" do context "email not provided" do
before { info_hash.delete(:email) } before { info_hash.delete(:email) }
it "generates a temp email" do it "generates a temp email" do
expect( auth_hash.email).to_not be_empty expect( auth_hash.email).to start_with('temp-email-for-oauth')
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment