]> git.openstreetmap.org Git - rails.git/commitdiff
Reduce TOTP cookie expiry to one hour
authorTom Hughes <tom@compton.nu>
Mon, 2 Jan 2017 21:17:37 +0000 (21:17 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 2 Jan 2017 21:17:37 +0000 (21:17 +0000)
app/controllers/site_controller.rb

index b10de379830c6c5a751d1c957ac88a51ff9d4282..42f04166284b9b65b270f5e070cc164cb49869a0 100644 (file)
@@ -18,7 +18,7 @@ class SiteController < ApplicationController
       cookies["_osm_totp_token"] = {
         :value => ROTP::TOTP.new(TOTP_KEY, :interval => 3600).now,
         :domain => ".openstreetmap.org",
-        :expires => 1.day.from_now
+        :expires => 1.hour.from_now
       }
     end
   end