signup-and-onboarding

This commit is contained in:
Jannat Patel
2022-12-16 16:44:55 +05:30
parent 9d373d4091
commit f93d7b0193
14 changed files with 80 additions and 90 deletions

View File

@@ -8,7 +8,6 @@ from frappe import _
from frappe.core.doctype.user.user import User
from frappe.utils import cint, escape_html, random_string
from frappe.website.utils import is_signup_disabled
from lms.lms.utils import validate_image
from lms.widgets import Widgets
@@ -295,6 +294,14 @@ def get_country_code():
return
def on_login(login_manager):
set_country_from_ip()
def on_session_creation(login_manager):
frappe.local.response["home_page"] = "/courses"
@frappe.whitelist(allow_guest=True)
def search_users(start=0, text=""):
or_filters = get_or_filters(text)