From 3b07266500b246717a25a09491b548bc571c66a9 Mon Sep 17 00:00:00 2001 From: Vishmita Date: Tue, 20 Nov 2012 12:59:57 +0530 Subject: [PATCH] [IMP]Minor Changes related to terminology for Change Password dialog pop-up bzr revid: vja@tinyerp.com-20121120072957-rrjlbwkn6tkdmqkc --- addons/web/controllers/main.py | 8 ++++---- addons/web/static/src/xml/base.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index fb7b45a4056..0155d4149a2 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -890,15 +890,15 @@ class Session(openerpweb.Controller): old_password, new_password,confirm_password = operator.itemgetter('old_pwd', 'new_password','confirm_pwd')( dict(map(operator.itemgetter('name', 'value'), fields))) if not (old_password.strip() and new_password.strip() and confirm_password.strip()): - return {'error':'All passwords have to be filled.','title': 'Change Password'} - if new_password != confirm_password: - return {'error': 'The new password and its confirmation must be identical.','title': 'Change Password'} + return {'error':'You cannot leave any password empty.','title': 'Change Password'} try: if req.session.model('res.users').change_password( old_password, new_password): return {'new_password':new_password} except Exception: - return {'error': 'Original password incorrect, your password was not changed.', 'title': 'Change Password'} + return {'error': 'The Old Password you provided is incorrect. Please try again.', 'title': 'Change Password'} + if new_password != confirm_password: + return {'error': 'The new password and its confirmation must be identical.','title': 'Change Password'} return {'error': 'Error, password not changed !', 'title': 'Change Password'} @openerpweb.jsonrequest diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 33997b7a920..a20c10c0589 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -328,7 +328,7 @@ minlength="1"/> - +