Add the possibility to enable/disable default OAuths (#303)

This commit is contained in:
Riccardo Graziosi
2024-03-05 18:13:16 +01:00
committed by GitHub
parent 719f1ad4e9
commit 32d19cbe7c
31 changed files with 508 additions and 131 deletions

View File

@@ -5,7 +5,7 @@ class TenantsController < ApplicationController
def new
@page_title = "Create your feedback space"
@o_auths = OAuth.unscoped.where(tenant_id: nil)
@o_auths = OAuth.unscoped.where(tenant_id: nil, is_enabled: true)
end
def show
@@ -46,6 +46,9 @@ class TenantsController < ApplicationController
@user.save!
CreateWelcomeEntitiesWorkflow.new().run
OAuth.include_only_defaults.each do |o_auth|
TenantDefaultOAuth.create(o_auth_id: o_auth.id)
end
logger.info { "New tenant registration: #{Current.tenant.inspect}" }