discourse/app/controllers/pageview_controller.rb
Ted Johansson d63f1826fe
FEATURE: User fields required for existing users - Part 2 (#27172)
We want to allow admins to make new required fields apply to existing users. In order for this to work we need to have a way to make those users fill up the fields on their next page load. This is very similar to how adding a 2FA requirement post-fact works. Users will be redirected to a page where they can fill up the remaining required fields, and until they do that they won't be able to do anything else.
2024-06-25 19:32:18 +08:00

15 lines
400 B
Ruby

# frozen_string_literal: true
class PageviewController < ApplicationController
skip_before_action :check_xhr,
:redirect_to_login_if_required,
:redirect_to_profile_if_required,
:preload_json,
:verify_authenticity_token
def index
# pageview tracking is handled by middleware
render plain: "ok"
end
end