Skip to content
Snippets Groups Projects
Commit 2c4e3e00 authored by Maxime Brugidou's avatar Maxime Brugidou
Browse files

Skip email confirmation with LDAP

parent 31cdb7a4
No related branches found
No related tags found
1 merge request!5798Skip email confirmation with LDAP
Loading
Loading
@@ -28,8 +28,8 @@ module Gitlab
}
 
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?
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment