##// END OF EJS Templates
Set the httponly flag on the autologin cookie....
Jean-Philippe Lang -
r4637:507f9d753f56
parent child
Show More
@@ -216,7 +216,8 class AccountController < ApplicationController
216 :value => token.value,
216 :value => token.value,
217 :expires => 1.year.from_now,
217 :expires => 1.year.from_now,
218 :path => (Redmine::Configuration['autologin_cookie_path'] || '/'),
218 :path => (Redmine::Configuration['autologin_cookie_path'] || '/'),
219 :secure => (Redmine::Configuration['autologin_cookie_secure'] ? true : false)
219 :secure => (Redmine::Configuration['autologin_cookie_secure'] ? true : false),
220 :httponly => true
220 }
221 }
221 cookies[cookie_name] = cookie_options
222 cookies[cookie_name] = cookie_options
222 end
223 end
General Comments 0
You need to be logged in to leave comments. Login now