Remove dot prefix from cookie domain
authorTom Hughes <tom@compton.nu>
Mon, 2 Jan 2017 21:33:58 +0000 (21:33 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 2 Jan 2017 21:33:58 +0000 (21:33 +0000)
app/controllers/site_controller.rb

index 42f04166284b9b65b270f5e070cc164cb49869a0..71285356aeb39f4d350ba4d5c0ad5def28161639 100644 (file)
@@ -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