From d66d67805d5daf9db9515cbdf6b13b43ad71f211 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 25 Oct 2021 20:25:46 +0100 Subject: [PATCH] Serve an updated TOTP token with the browse query response --- app/controllers/browse_controller.rb | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.43.2