fix mass assignment error in create_from_omniauth after a6a229a
This commit is contained in:
parent
dddb5b5de9
commit
4629cc44d6
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ module Gitlab
|
|||
log.info "#{ldap_prefix}Creating user from #{provider} login"\
|
||||
" {uid => #{uid}, name => #{name}, email => #{email}}"
|
||||
password = Devise.friendly_token[0, 8].downcase
|
||||
@user = User.new(
|
||||
@user = User.new({
|
||||
extern_uid: uid,
|
||||
provider: provider,
|
||||
name: name,
|
||||
|
@ -38,7 +38,7 @@ module Gitlab
|
|||
password: password,
|
||||
password_confirmation: password,
|
||||
projects_limit: Gitlab.config.default_projects_limit,
|
||||
)
|
||||
}, as: :admin)
|
||||
if Gitlab.config.omniauth['block_auto_created_users'] && !ldap
|
||||
@user.blocked = true
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue