]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/browse_controller.rb
Add extra user transitions needed by the administrators
[rails.git] / app / controllers / browse_controller.rb
index 50d0ae0a545e60b130331aabbbeb5764331a540c..6c5336908605448679b2111295883862da9c1e03 100644 (file)
@@ -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