Browse Source

自动登录输入logger

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

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

@@ -163,7 +163,8 @@ class AccountsController < ApplicationController
successful_authentication(@user)
login_control.clear # 重置每日密码错误次数
Rails.logger.info("#########_______current_user_id________#############{User.current.try(:id)}")
Rails.logger.info("#########_______User_current_id________#############{User.current.try(:id)}")
Rails.logger.info("#########_______current_user_id________#############{current_user.try(:id)}")
# session[:user_id] = @user.id
end


Loading…
Cancel
Save