|
|
@ -1152,9 +1152,9 @@ class ApplicationController < ActionController::Base
|
|
|
|
def user_login_and_from_openi
|
|
|
|
def user_login_and_from_openi
|
|
|
|
url = request.referer.nil? ? Redmine::Configuration['educoder_domain'] : request.referer
|
|
|
|
url = request.referer.nil? ? Redmine::Configuration['educoder_domain'] : request.referer
|
|
|
|
flag = URI(url).host == 'localhost' && !current_user.logged?
|
|
|
|
flag = URI(url).host == 'localhost' && !current_user.logged?
|
|
|
|
logger.debug "----------------------- #{url} -------------------------"
|
|
|
|
logger.info "----------------------- #{url} -------------------------"
|
|
|
|
logger.debug "----------------------- #{URI(url).host} --------------------------"
|
|
|
|
logger.info "----------------------- #{URI(url).host} --------------------------"
|
|
|
|
logger.debug "----------------------- #{flag} -------------------------"
|
|
|
|
logger.info "----------------------- #{flag} -------------------------"
|
|
|
|
flag
|
|
|
|
flag
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|