docbrown/app/controllers/admin/settings/authentications_controller.rb
Michael Kohl dcf942e3a2
Add Admin:Settings controllers (#13851)
* Add Admin:Settings::BaseController and refactor

* Further simplify controllers

* Add comments, more cleanup

* Update mandatory settings controller

* Update spec

* Update service object and spec

* Update controller

* Update app/services/settings/general/upsert.rb

Co-authored-by: Jamie Gaskins <jamie@forem.com>

Co-authored-by: Jamie Gaskins <jamie@forem.com>
2021-06-08 10:13:55 +07:00

17 lines
412 B
Ruby

module Admin
module Settings
class AuthenticationsController < Admin::Settings::BaseController
private
def upsert_config(settings)
::Settings::Authentication::Upsert.call(settings)
end
def settings_params
params
.require(:settings_authentication)
.permit(*::Settings::Authentication.keys, :auth_providers_to_enable)
end
end
end
end