From a7c2de6164c2b3dc5fadc27a9820321ff239f87b Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 2 Mar 2012 11:27:50 +0530 Subject: [PATCH] fix in user passwordgs --- erpnext/utilities/page/users/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/utilities/page/users/users.py b/erpnext/utilities/page/users/users.py index ca482137ef..6251e43216 100644 --- a/erpnext/utilities/page/users/users.py +++ b/erpnext/utilities/page/users/users.py @@ -82,7 +82,7 @@ def update_security(args=''): webnotes.conn.set_value('Profile', args['user'], 'login_before', args.get('login_before')) webnotes.conn.set_value('Profile', args['user'], 'enabled', int(args.get('enabled',0)) or 0) - if 'new_password' in args: + if args.get('new_password') and args.get('sys_admin_pwd'): if cint(webnotes.conn.get_value('Control Panel',None,'sync_with_gateway')): import server_tools.gateway_utils res = server_tools.gateway_utils.change_password('', args['new_password'],