Commit 2c4e3e001f2e3b22546d9a0288ca7d2d7121fff1

Authored by Maxime Brugidou
1 parent 31cdb7a4

Skip email confirmation with LDAP

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/gitlab/oauth/user.rb
@@ -28,8 +28,8 @@ module Gitlab @@ -28,8 +28,8 @@ module Gitlab
28 } 28 }
29 29
30 user = model.build_user(opts, as: :admin) 30 user = model.build_user(opts, as: :admin)
  31 + user.skip_confirmation!
31 user.save! 32 user.save!
32 - user.confirm!  
33 log.info "(OAuth) Creating user #{email} from login with extern_uid => #{uid}" 33 log.info "(OAuth) Creating user #{email} from login with extern_uid => #{uid}"
34 34
35 if Gitlab.config.omniauth['block_auto_created_users'] && !ldap? 35 if Gitlab.config.omniauth['block_auto_created_users'] && !ldap?