diff --git a/home/page/event_updates/event_updates.js b/home/page/event_updates/event_updates.js
index 4ae085796b..7ecfbdcf3c 100644
--- a/home/page/event_updates/event_updates.js
+++ b/home/page/event_updates/event_updates.js
@@ -618,14 +618,7 @@ pscript.home_make_status = function() {
// system_messages
if(r.message.system_message)
pscript.show_system_message(wrapper, r.message.system_message);
-
- // trial
- if(pscript.is_erpnext_saas && cint(r.message.is_trial) && in_list(user_roles, 'System Manager')) {
- pscript.trial_box = $a(div, 'div', 'help_box', {margin:'2px 8px 2px 0px'}, "Your Free Trial expires in " +
- r.message.days_to_expiry + " days. When you are satisfied, please please click here to convert to a paid account." +
- "
To get help, view Getting Started with Your System (opens in a new page)");
- }
-
+
// render online users
pscript.online_users_obj.render(r.message.online_users);
pscript.online_users = r.message.online_users;
@@ -633,16 +626,6 @@ pscript.home_make_status = function() {
);
}
-// show system message
-// -------------------
-pscript.convert_to_paid = function() {
- var callback = function(r,rt) {
- if(r.exc) { msgprint(r.exc); return; }
- $(pscript.trial_box).slideUp();
- }
- $c_page('home','event_updates','convert_to_paid','',callback)
-}
-
// show system message
// -------------------
pscript.show_system_message = function(wrapper, msg) {
diff --git a/home/page/event_updates/event_updates.py b/home/page/event_updates/event_updates.py
index 8f5068c0d8..ce73cd11d0 100644
--- a/home/page/event_updates/event_updates.py
+++ b/home/page/event_updates/event_updates.py
@@ -43,14 +43,3 @@ def get_status_details(arg=None):
'is_trial': webnotes.conn.get_global('is_trial'),
'days_to_expiry': (webnotes.conn.get_global('days_to_expiry') or '0')
}
-
-#
-# Convert to a paid account
-#
-def convert_to_paid():
- from server_tools.server_tools.gateway_utils import convert_to_paid_gateway
- r = convert_to_paid_gateway()
- if r['exc']:
- webnotes.msgprint(r['exc'])
- raise Exception, r['exc']
- webnotes.msgprint('Thank you for choosing to convert to a Paid Account!')
diff --git a/home/page/profile_settings/profile_settings.py b/home/page/profile_settings/profile_settings.py
index 3703d276d2..f9124b696e 100644
--- a/home/page/profile_settings/profile_settings.py
+++ b/home/page/profile_settings/profile_settings.py
@@ -2,15 +2,16 @@ import webnotes
from webnotes.utils import load_json, cint, nowdate
-#
-# change profile (remote)
-#
+
def change_password(arg):
+ """
+ Change password
+ """
arg = load_json(arg)
if cint(webnotes.conn.get_value('Control Panel',None,'sync_with_gateway')):
- import server_tools.server_tools.gateway_utils
- webnotes.msgprint(server_tools.server_tools.gateway_utils.change_password(arg['old_password'], arg['new_password'])['message'])
+ import server_tools.gateway_utils
+ webnotes.msgprint(server_tools.gateway_utils.change_password(arg['old_password'], arg['new_password'])['message'])
else:
if not webnotes.conn.sql('select name from tabProfile where name=%s and password=password(%s)', (webnotes.session['user'], arg['old_password'])):
webnotes.msgprint('Old password is not correct', raise_exception=1)