Browse Source

添加修改密码的logger

tags/v1
sylor_huang@126.com 6 years ago
parent
commit
19c7254fa0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/controllers/accounts_controller.rb

+ 2
- 0
app/controllers/accounts_controller.rb View File

@@ -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


Loading…
Cancel
Save