Reduce TOTP cookie expiry to one hour

This commit is contained in:
Tom Hughes 2017-01-02 21:17:37 +00:00
parent 17135cad03
commit d83cc0f15b

View 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