mastodon/app/controllers/settings/two_factor_authentication/base_controller.rb

10 lines
214 B
Ruby

# frozen_string_literal: true
module Settings
module TwoFactorAuthentication
class BaseController < ::Settings::BaseController
layout -> { truthy_param?(:oauth) ? 'modal' : 'admin' }
end
end
end