Merge pull request #5798 from criteo/skip_confirmation

Skip email confirmation with LDAP
This commit is contained in:
Dmitriy Zaporozhets 2013-12-10 01:43:38 -08:00
commit e44653764a

View file

@ -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?