Reduce TOTP cookie expiry to one hour
This commit is contained in:
parent
17135cad03
commit
d83cc0f15b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue