|
|
|
@ -28,6 +28,9 @@ module Trustie
|
|
|
|
|
begin
|
|
|
|
|
u = find_user(user)
|
|
|
|
|
unless u.present?
|
|
|
|
|
if user.hashed_password.blank?
|
|
|
|
|
user.salt_password("edu12345678")
|
|
|
|
|
end
|
|
|
|
|
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}")
|
|
|
|
|
user.gid = u.id
|
|
|
|
|