From 9a82ae069aa3523085ba9fb2e15f70d9e2fbf1b8 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 2 Jan 2017 21:33:58 +0000 Subject: [PATCH] Remove dot prefix from cookie domain --- app/controllers/site_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 42f041662..71285356a 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -17,7 +17,7 @@ class SiteController < ApplicationController if defined?(TOTP_KEY) cookies["_osm_totp_token"] = { :value => ROTP::TOTP.new(TOTP_KEY, :interval => 3600).now, - :domain => ".openstreetmap.org", + :domain => "openstreetmap.org", :expires => 1.hour.from_now } end -- 2.43.2