From d83cc0f15b50bb4e7dbc28be9e1cdfd85bc36de1 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 2 Jan 2017 21:17:37 +0000 Subject: [PATCH 1/1] Reduce TOTP cookie expiry to one hour --- 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 b10de3798..42f041662 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -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 -- 2.43.2