4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/reactor/session_helper/auth_helper.rb', line 4
def rsession_auth
if RailsConnector::Configuration.mode == :editor && (jsessionid = cookies["JSESSIONID"]).present?
jsessionid.tr!(" ", "+")
Rails.logger.info "Trying to log in at #{Reactor::Configuration.xml_access[:host]}:#{Reactor::Configuration.xml_access[:port]} with JSESSIONID=#{jsessionid}."
rsession.login(jsessionid)
Rails.logger.info %(Logged in as "#{rsession.user_name}".) if rsession.user?
else
rsession.destroy
end
end
|