diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-25 00:12:14 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-04-25 05:27:39 +0300 |
commit | d7e2ac729317ace2ccf0203663637ba32f328d1a (patch) | |
tree | 55c00911d74ca7176cbb299db9a308e6bb23b088 /lib/gitlab/o_auth | |
parent | 080aac050d852c332181a0e3fed7821d52d16c1a (diff) |
Fix OAuth, LDAP and SAML SSO when regular sign-ups are disabled
Diffstat (limited to 'lib/gitlab/o_auth')
-rw-r--r-- | lib/gitlab/o_auth/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/o_auth/user.rb b/lib/gitlab/o_auth/user.rb index 6e42d8941fb..afd24b4dcc5 100644 --- a/lib/gitlab/o_auth/user.rb +++ b/lib/gitlab/o_auth/user.rb @@ -148,7 +148,7 @@ module Gitlab def build_new_user user_params = user_attributes.merge(extern_uid: auth_hash.uid, provider: auth_hash.provider, skip_confirmation: true) - Users::BuildService.new(nil, user_params).execute + Users::BuildService.new(nil, user_params).execute(skip_authorization: true) end def user_attributes |