Skip to content

Commit

Permalink
Reduce TOTP cookie expiry to one hour
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jan 2, 2017
1 parent 17135ca commit d83cc0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/site_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def index
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
Expand Down

0 comments on commit d83cc0f

Please sign in to comment.