mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-07 08:21:47 +01:00
fixes #753 by adding a global option to enable secure cookies
you need to recreate your environment.rb from the tmpl for this change
This commit is contained in:
parent
a4cb8fb113
commit
2a6b8f1cd9
6 changed files with 15 additions and 13 deletions
|
|
@ -229,7 +229,7 @@ class TodosController < ApplicationController
|
|||
format.m do
|
||||
if @saved
|
||||
if cookies[:mobile_url]
|
||||
cookies[:mobile_url] = nil
|
||||
cookies[:mobile_url] = {:value => nil, :secure => TRACKS_COOKIES_SECURE}
|
||||
redirect_to cookies[:mobile_url]
|
||||
else
|
||||
redirect_to formatted_todos_path(:m)
|
||||
|
|
@ -370,7 +370,7 @@ class TodosController < ApplicationController
|
|||
@default_project_context_name_map = build_default_project_context_name_map(@projects).to_json
|
||||
}
|
||||
format.m {
|
||||
cookies[:mobile_url]=request.request_uri
|
||||
cookies[:mobile_url]= {:value => request.request_uri, :secure => TRACKS_COOKIES_SECURE}
|
||||
render :action => "mobile_tag"
|
||||
}
|
||||
end
|
||||
|
|
@ -608,7 +608,7 @@ class TodosController < ApplicationController
|
|||
lambda do
|
||||
@page_title = "All actions"
|
||||
@home = true
|
||||
cookies[:mobile_url]=request.request_uri
|
||||
cookies[:mobile_url]= { :value => request.request_uri, :secure => TRACKS_COOKIES_SECURE}
|
||||
determine_down_count
|
||||
|
||||
render :action => 'index'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue