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

Skip email confirmation with LDAP

parent bacdc1ad8e5e
......@@ -28,8 +28,8 @@ def create(auth)
}
user = model.build_user(opts, as: :admin)
user.skip_confirmation!
user.save!
user.confirm!
log.info "(OAuth) Creating user #{email} from login with extern_uid => #{uid}"
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