mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
Add custom domains (#314)
This commit is contained in:
committed by
GitHub
parent
d47c70f576
commit
d17b45c5c4
@@ -27,9 +27,9 @@ class OAuth < ApplicationRecord
|
||||
# for this reason, we don't preprend tenant subdomain
|
||||
# but rather use the "login" subdomain
|
||||
if self.is_default?
|
||||
o_auth_callback_url(id, host: Rails.application.base_url, subdomain: "login")
|
||||
get_url_for(method(:o_auth_callback_url), resource: id, disallow_custom_domain: true, options: { subdomain: "login", host: Rails.application.base_url })
|
||||
else
|
||||
add_subdomain_to(method(:o_auth_callback_url), id)
|
||||
get_url_for(method(:o_auth_callback_url), resource: id, disallow_custom_domain: true)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user