Skip to content
Snippets Groups Projects
Commit b7b83590 authored by Izaak Alpert's avatar Izaak Alpert Committed by Wes Gurney
Browse files

Removed private scope

Change-Id: Ia723321a5cb05deb626d34c7d8d78194e049b1f0
parent 3c13408f
No related branches found
No related tags found
1 merge request!4954Add support to configure webhook_timeout in gitlab.yaml
Loading
Loading
@@ -383,8 +383,6 @@ class User < ActiveRecord::Base
end
end
 
private
def with_defaults
User.defaults.each do |k,v|
self.send("#{k}=",v)
Loading
Loading
Loading
Loading
@@ -27,7 +27,7 @@ module Gitlab
password_confirmation: password,
}
 
user = model.new(opts, as: :admin).with_defaults
user = model.build_user(opts, as: :admin)
user.save!
log.info "(OAuth) Creating user #{email} from login with extern_uid => #{uid}"
 
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