signup-and-onboarding
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user