mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
conf migration
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
def on_login(self):
|
||||
from webnotes.utils import validate_email_add
|
||||
import conf
|
||||
from webnotes import conf
|
||||
if hasattr(conf, "demo_notify_url"):
|
||||
if webnotes.form_dict.lead_email and validate_email_add(webnotes.form_dict.lead_email):
|
||||
import requests
|
||||
@@ -10,4 +10,4 @@
|
||||
"subject":"Logged into Demo",
|
||||
"sender": webnotes.form_dict.lead_email,
|
||||
"message": "via demo.erpnext.com"
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user