Serve an updated TOTP token with the browse query response
This commit is contained in:
parent
c773162e36
commit
d66d67805d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue