From 829a6cd6859d53be510f06b00c6b2b76bff72696 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Wed, 20 Nov 2019 11:26:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/application_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index d26a87c12..3f70308c8 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -296,8 +296,8 @@ class ApplicationController < ActionController::Base end - Rails.logger.info("find current_user: subdomain is #{request.subdomain} and user session is #{session[:user_id]} -- #{session[:"#{requst.subdomain}_user_id"]}") - if session[:"#{requst.subdomain}_user_id"] + Rails.logger.info("find current_user: subdomain is #{request.subdomain} and user session is #{session[:user_id]} -- #{session[:"#{request.subdomain}_user_id"]}") + if session[:"#{request.subdomain}_user_id"] # existing session (User.active.find(session[:user_id]) rescue nil) elsif autologin_user = try_to_autologin