mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Add the possibility to enable/disable default OAuths (#303)
This commit is contained in:
committed by
GitHub
parent
719f1ad4e9
commit
32d19cbe7c
@@ -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}" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user