From 76ac760114205682f0524dfb96f79895fc384f9d Mon Sep 17 00:00:00 2001 From: huang Date: Thu, 14 Jun 2018 11:27:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B5=84=E6=96=99=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E4=BF=AE=E6=94=B9=E4=BA=86=E9=82=AE=E7=AE=B1?= =?UTF-8?q?=E5=88=99=E4=B8=80=E5=B9=B6=E4=BF=AE=E6=94=B9gitlab=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/my_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index ac5c7a67d..08f93dab9 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -202,7 +202,8 @@ class MyController < ApplicationController if gid.nil? gid = s.sync_user(@user).id end - g.edit_user(gid, :email => params[:user][:mail], :username => @user.login) + g.edit_user(gid, :username => @user.login) + g.edit_user_mail(gid, :email => params[:user][:mail]) rescue Exception => e puts e end