From 213c418f759262f01fa5891552af60f6937bf0e6 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Wed, 15 Apr 2020 15:55:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9gitea=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=9A=84=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/accounts_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index 0e2a4d733..7e43abb5c 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -65,6 +65,10 @@ class AccountsController < ApplicationController u.save! sync_params = {} + Rails.logger.info("######_________user_param_mail________#############{user_params["mail"]}") + Rails.logger.info("######_________user_mail________#############{user_mail}") + + Rails.logger.info("######_________user_param_login________#############{user_params["login"]}") if (user_params["mail"] && user_params["mail"] != user_mail) || (user_params["login"] && user_params["login"] != params[:old_user_login]) sync_params.merge(email: user_params["mail"], username: user_params["login"])