From cc76f56969cbc45cac5fefa501ea220c719dc061 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Wed, 20 Nov 2019 14:53:28 +0800 Subject: [PATCH] .. --- app/controllers/application_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 6721d7445..adef28e03 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -293,7 +293,9 @@ class ApplicationController < ActionController::Base def find_current_user re_subdomain = "#{request.subdomain.split('.').first}_user_id" - Rails.logger.info("find current_user: subdomain is #{request.subdomain} and user session is #{session[:user_id]} -- #{session[:"#{re_subdomain}"]}") + Rails.logger.info("find current_user: subdomain is #{re_subdomain} and user session is #{session[:user_id]} -- #{session[:"#{re_subdomain}"]}") + Rails.logger.info("-----------------------------") + Rails.logger.info("domain session is: #{session[:"#{request.subdomain.split('.').first}_user_id"]}") if session[:"#{re_subdomain}"] # existing session (User.active.find(session[:"#{re_subdomain}"]) rescue nil)