From 19c7254fa009e7c31bbf94e20956d33f5c7344eb Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Fri, 17 Apr 2020 14:52:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E7=9A=84logger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/accounts_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index a426364b4..476a8195e 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -99,9 +99,11 @@ class AccountsController < ApplicationController def remote_password @user = User.find_by(login: params[:login]) if @user && @user.update_attribute(:password, params[:password]) + Rails.logger.info("######________password_update_success____######") render_ok({}) else + Rails.logger.info("######________password_update_failed____######") render_error("更新失败") end end