fix: redirection to FC site without checking payment method

This commit is contained in:
Jannat Patel
2025-03-20 11:57:08 +05:30
parent 7ae3cf5d95
commit 066eaea45d
4 changed files with 9 additions and 5 deletions

View File

@@ -83,3 +83,8 @@ def set_country_from_ip(login_manager=None, user=None):
# return
frappe.db.set_value("User", user, "country", get_country_code())
return
def on_login(login_manager):
default_app = frappe.db.get_single_value("System Settings", "default_app")
if default_app == "lms":
frappe.local.response["home_page"] = "/lms"