修改gitea用户的更新代码

This commit is contained in:
sylor_huang@126.com 2020-04-15 15:55:52 +08:00
parent 49a94c1585
commit 213c418f75
1 changed files with 4 additions and 0 deletions

View File

@ -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"])