[fix] [minor] [website]
diff --git a/portal/templates/pages/profile.html b/portal/templates/pages/profile.html
index 6971909..fe9ded5 100644
--- a/portal/templates/pages/profile.html
+++ b/portal/templates/pages/profile.html
@@ -15,10 +15,6 @@
<input class="form-control" type="text" id="fullname" placeholder="Your Name">
</fieldset>
<fieldset>
- <label>Password</label>
- <input class="form-control" type="password" id="password" placeholder="Password">
- </fieldset>
- <fieldset>
<label>Company Name</label>
<input class="form-control" type="text" id="company_name" placeholder="Company Name" value="{{ company_name }}">
</fieldset>
@@ -42,7 +38,6 @@
type: "POST",
args: {
fullname: $("#fullname").val(),
- password: $("#password").val(),
company_name: $("#company_name").val(),
mobile_no: $("#mobile_no").val(),
phone: $("#phone").val()
diff --git a/portal/templates/pages/profile.py b/portal/templates/pages/profile.py
index b7be74c..8edd830 100644
--- a/portal/templates/pages/profile.py
+++ b/portal/templates/pages/profile.py
@@ -3,6 +3,7 @@
from __future__ import unicode_literals
import webnotes
+from webnotes import _
from webnotes.utils import cstr
no_cache = True
@@ -28,5 +29,11 @@
from selling.utils.cart import update_party
update_party(fullname, company_name, mobile_no, phone)
- from core.doctype.profile import profile
- return profile.update_profile(fullname, password)
\ No newline at end of file
+ if not fullname:
+ return _("Name is required")
+
+ webnotes.conn.set_value("Profile", webnotes.session.user, "first_name", fullname)
+ webnotes.add_cookies["full_name"] = fullname
+
+ return _("Updated")
+
\ No newline at end of file