[fix] [minor] [website]

This commit is contained in:
Anand Doshi
2013-09-17 13:46:50 +05:30
parent ad0b05060a
commit 619ed5e949
6 changed files with 11 additions and 10 deletions

View File

@@ -1,13 +1,13 @@
def on_login(self):
from webnotes.utils import validate_email_add
import conf
if hasattr(conf, "demo_notify_url"):
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
response = requests.post(conf.demo_notify_url, data={
"cmd":"selling.utils.contact.send_message",
"cmd":"portal.utils.send_message",
"subject":"Logged into Demo",
"sender": webnotes.form_dict.lead_email,
"message": "via demo.erpnext.com"
})
})