Fix OAuth login on custom domains (#320)

This commit is contained in:
Riccardo Graziosi
2024-03-28 12:29:54 +01:00
committed by GitHub
parent b63956a173
commit e887bca9cf
9 changed files with 42 additions and 25 deletions

View File

@@ -10,6 +10,7 @@
oAuthLogo: o_auth.logo,
oAuthReason: "login",
isSignUp: defined?(is_sign_up) ? is_sign_up : false,
href: get_url_for(method(:o_auth_start_url), resource: o_auth.id, disallow_custom_domain: true, options: { reason: "login" }),
}
)
%>

View File

@@ -19,6 +19,7 @@
locale: @tenant.locale
},
boards: @tenant.boards.order(order: :asc),
isMultiTenant: Rails.application.multi_tenancy?,
authenticityToken: form_authenticity_token
}
)