Skip to content
Snippets Groups Projects
Commit e4465376 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge pull request #5798 from criteo/skip_confirmation

Skip email confirmation with LDAP
parents 1ab91d88 2c4e3e00
No related branches found
No related tags found
No related merge requests found
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