修复重构错误
This commit is contained in:
parent
6086c9304e
commit
3a21e9f2b0
|
@ -6,7 +6,7 @@ namespace :gitlab do
|
|||
task :users => :environment do
|
||||
# User.where(username: 'root').find_each do |user|
|
||||
s = Trustie::Gitlab::Sync.new
|
||||
User.where(login: 'guange1').find_each do |user|
|
||||
User.find_each do |user|
|
||||
s.sync_user(user)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -30,7 +30,7 @@ module Trustie
|
|||
user.save!
|
||||
puts "create user #{user.login}"
|
||||
end
|
||||
Helper.change_password(u.id, user.hashed_password, user.salt)
|
||||
change_password(u.id, user.hashed_password, user.salt)
|
||||
rescue => e
|
||||
puts e
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue