Merge pull request #38314 from frappe/remove_login_with_fc
Remove login with fc
This commit is contained in:
commit
e00328715d
1 changed files with 1 additions and 8 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue