Commit 2c4e3e00 authored by Maxime Brugidou's avatar Maxime Brugidou

Skip email confirmation with LDAP

parent 31cdb7a4
...@@ -28,8 +28,8 @@ module Gitlab ...@@ -28,8 +28,8 @@ module Gitlab
} }
user = model.build_user(opts, as: :admin) user = model.build_user(opts, as: :admin)
user.skip_confirmation!
user.save! user.save!
user.confirm!
log.info "(OAuth) Creating user #{email} from login with extern_uid => #{uid}" log.info "(OAuth) Creating user #{email} from login with extern_uid => #{uid}"
if Gitlab.config.omniauth['block_auto_created_users'] && !ldap? if Gitlab.config.omniauth['block_auto_created_users'] && !ldap?
......
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