From: Tom Hughes Date: Mon, 25 Oct 2021 19:25:46 +0000 (+0100) Subject: Serve an updated TOTP token with the browse query response X-Git-Tag: live~1378 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/d66d67805d5daf9db9515cbdf6b13b43ad71f211 Serve an updated TOTP token with the browse query response --- diff --git a/app/controllers/browse_controller.rb b/app/controllers/browse_controller.rb index 50d0ae0a5..6c5336908 100644 --- a/app/controllers/browse_controller.rb +++ b/app/controllers/browse_controller.rb @@ -5,6 +5,7 @@ class BrowseController < ApplicationController before_action :set_locale before_action -> { check_database_readable(:need_api => true) } before_action :require_oauth + before_action :update_totp, :only => [:query] around_action :web_timeout authorize_resource :class => false @@ -88,4 +89,6 @@ class BrowseController < ApplicationController rescue ActiveRecord::RecordNotFound render :action => "not_found", :status => :not_found end + + def query; end end