修改login_helper

This commit is contained in:
sylor_huang@126.com 2020-04-15 10:55:57 +08:00
parent c88ba4a4d3
commit 38bd22597e
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,10 @@ module LoginHelper
if edu_setting('cookie_domain').present?
cookie_options = cookie_options.merge(domain: edu_setting('cookie_domain'))
end
Rails.logger.info("####_______token___________#### #{token}")
Rails.logger.info("####_______cookie_options__________#### #{cookie_options}")
Rails.logger.info("####_______autologin_cookie_name__________#### #{autologin_cookie_name}")
cookies[autologin_cookie_name] = cookie_options
Rails.logger.info("cookies is #{cookies}")
end