diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index e684a7c9..839a8a4f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1151,6 +1151,10 @@ class ApplicationController < ActionController::Base def user_login_and_from_openi url = request.referer.nil? ? Redmine::Configuration['educoder_domain'] : request.referer - URI(url).host == 'openi.org.cn' && !current_user.logged? + flag = URI(url).host == 'localhost' && !current_user.logged? + logger.debug "----------------------- #{url} -------------------------" + logger.debug "----------------------- #{URI(url).host} --------------------------" + logger.debug "----------------------- #{flag} -------------------------" + flag end end