Fixed issue 33276: Remove autocomplete in User window using Chrome.
authorJavier Armendáriz <javier.armendariz@openbravo.com>
Tue, 05 Jun 2018 12:39:21 +0200
changeset 34170 c2d6e3a7a39c
parent 34169 12b93eb9932b
child 34172 987b2d3681b4
Fixed issue 33276: Remove autocomplete in User window using Chrome.

Setting the password tag as autocomplete="new-password" prevents Chrome to
autocomplete the user and password fields of User window with saved data.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-encrypted.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-encrypted.js	Fri Jun 01 11:04:41 2018 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-encrypted.js	Tue Jun 05 12:39:21 2018 +0200
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2011-2012 Openbravo SLU
+ * All portions are Copyright (C) 2011-2018 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -23,6 +23,7 @@
 // add specific properties here
 isc.OBEncryptedItem.addProperties({
   operator: 'iContains',
+  autoCompleteKeywords: ['new-password'],
   changed: function (form, item, value) {
     this.Super('changed', arguments);
     this.form.setValue(item.name + '_cleartext', value);