Merge pull request #38314 from frappe/remove_login_with_fc

Remove login with fc
This commit is contained in:
Ejaaz Khan 2026-03-29 19:28:02 +05:30 committed by GitHub
commit e00328715d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,9 +23,6 @@ no_cache = True
def get_context(context):
from frappe.integrations.frappe_providers.frappecloud_billing import get_site_login_url
from frappe.utils.frappecloud import on_frappecloud
redirect_to = frappe.local.request.args.get("redirect-to")
redirect_to = sanitize_redirect(redirect_to)
@ -112,11 +109,7 @@ def get_context(context):
context["login_label"] = f" {_('or')} ".join(login_label)
context["login_with_email_link"] = frappe.get_system_settings("login_with_email_link")
context["login_with_frappe_cloud_url"] = (
f"{get_site_login_url()}?redirect=/dashboard/sites/{frappe.local.site}/insights/overview"
if on_frappecloud() and frappe.conf.get("fc_communication_secret")
else None
)
context["login_with_frappe_cloud_url"] = None
return context