密码问题

dev_local_lzdx
daiao 5 years ago
parent 7bf20c692f
commit 55975d0ae1

@ -29,7 +29,9 @@ module Trustie
u = find_user(user) u = find_user(user)
unless u.present? unless u.present?
if user.hashed_password.blank? if user.hashed_password.blank?
user.salt_password("edu12345678") user.password = "edu12345678"
user.save!
Rails.logger.warn("user.hashed_password: #{user.hashed_password}")
end end
u = self.g.create_user(user.mail, user.hashed_password, name: user.show_name, username: user.login, confirm: "true") u = self.g.create_user(user.mail, user.hashed_password, name: user.show_name, username: user.login, confirm: "true")
Rails.logger.warn("create gitlab log ##user.mail is #{user.mail}, name is #{user.show_name}, u id is#{u.id}") Rails.logger.warn("create gitlab log ##user.mail is #{user.mail}, name is #{user.show_name}, u id is#{u.id}")

Loading…
Cancel
Save