From 654525402766eb27792dee939dc24dcf36fca5a0 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Tue, 11 Jun 2019 08:47:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E7=94=A8=E6=88=B7=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E5=90=8C=E6=AD=A5=E9=82=AE=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/trustie/gitlab/helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/trustie/gitlab/helper.rb b/lib/trustie/gitlab/helper.rb index 87cb4d35..30249198 100644 --- a/lib/trustie/gitlab/helper.rb +++ b/lib/trustie/gitlab/helper.rb @@ -28,7 +28,7 @@ module Trustie begin u = find_user(user) unless u.present? - u = self.g.create_user("#{user.login}@educoder.com",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}") user.gid = u.id user.save