Change
This commit is contained in:
parent
e634317675
commit
0f60d0adc9
|
@ -263,12 +263,11 @@ class AccountsController < ApplicationController
|
|||
:expires => 1.month.from_now,
|
||||
:path => '/',
|
||||
:secure => false,
|
||||
:httponly => true,
|
||||
:domain => "123.59.135.93"
|
||||
:httponly => true
|
||||
}
|
||||
# if edu_setting('cookie_domain').present?
|
||||
# cookie_options = cookie_options.merge(domain: edu_setting('cookie_domain'))
|
||||
# end
|
||||
if edu_setting('cookie_domain').present?
|
||||
cookie_options = cookie_options.merge(domain: edu_setting('cookie_domain'))
|
||||
end
|
||||
cookies[autologin_cookie_name] = cookie_options
|
||||
cookies.signed[:user_id] ||= user.id
|
||||
|
||||
|
|
|
@ -17,16 +17,14 @@ module LoginHelper
|
|||
:expires => 1.month.from_now,
|
||||
:path => '/',
|
||||
:secure => false,
|
||||
:httponly => false,
|
||||
:domain => "123.59.135.93"
|
||||
:httponly => false
|
||||
}
|
||||
# if edu_setting('cookie_domain').present?
|
||||
# cookie_options = cookie_options.merge(domain: edu_setting('cookie_domain'))
|
||||
# end
|
||||
# unless cookies[autologin_cookie_name].present?
|
||||
|
||||
# end
|
||||
cookies[autologin_cookie_name] = cookie_options
|
||||
if edu_setting('cookie_domain').present?
|
||||
cookie_options = cookie_options.merge(domain: edu_setting('cookie_domain'))
|
||||
end
|
||||
unless cookies[autologin_cookie_name].present?
|
||||
cookies[autologin_cookie_name] = cookie_options
|
||||
end
|
||||
# for action cable
|
||||
cookies.signed[:user_id] ||= user.id
|
||||
|
||||
|
|
Loading…
Reference in New Issue