Merge pull request #5798 from criteo/skip_confirmation
Skip email confirmation with LDAP
This commit is contained in:
commit
e44653764a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue