[icinga-checkins] icinga.org: icinga-web/master: Fixed password field in admin dialog not being cleared (fixes #2739)

git at icinga.org git at icinga.org
Tue Oct 9 13:15:12 CEST 2012


Module: icinga-web
Branch: master
Commit: 8efc42f0a68e79dba964fe200c5231386eb86472
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=8efc42f0a68e79dba964fe200c5231386eb86472

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Tue Oct  9 13:14:18 2012 +0200

Fixed password field in admin dialog not being cleared (fixes #2739)

---

 app/modules/AppKit/lib/js/admin/UserEditForm.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/app/modules/AppKit/lib/js/admin/UserEditForm.js b/app/modules/AppKit/lib/js/admin/UserEditForm.js
old mode 100644
new mode 100755
index 7e11d80..71ddd9b
--- a/app/modules/AppKit/lib/js/admin/UserEditForm.js
+++ b/app/modules/AppKit/lib/js/admin/UserEditForm.js
@@ -195,7 +195,15 @@ Ext.ns("AppKit.Admin");
             type: 'user'
         });
 
+        var clearPassword = function() {
+            var passfield = Ext.getCmp('form_user_password');
+            var passfield_confirm = Ext.getCmp('form_user_password_confirmed');
+            passfield.setValue("");
+            passfield_confirm.setValue("");
+        }
+
         AppKit.Admin.UserEditForm.bindUser = function (id, url) {
+            clearPassword();
             if (id !== 'new') {
                 userStore.proxy.setUrl(url + "/id=" + id);
                 userStore.load();





More information about the icinga-checkins mailing list