From: Tom Hughes Date: Mon, 2 Jan 2017 21:17:37 +0000 (+0000) Subject: Reduce TOTP cookie expiry to one hour X-Git-Tag: live~3661 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/d83cc0f15b50bb4e7dbc28be9e1cdfd85bc36de1?hp=17135cad03d46e0604bf83c91ea1b086db6aae47 Reduce TOTP cookie expiry to one hour --- 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