if (this.type == 'staff') {
_this.form.findField('passwd1').allowBlank = false;
_this.form.findField('passwd2').allowBlank = false;
- if (data.id > 0) {
- _this.form.findField('passwd1').allowBlank = true;
- _this.form.findField('passwd2').allowBlank = true;
- }
+// if (data.id > 0) {
+// _this.form.findField('passwd1').allowBlank = true;
+// _this.form.findField('passwd2').allowBlank = true;
+// }
}
return;
name : 'passwd1',
fieldLabel : "New Password ",
value : '',
- allowBlank : true, // must be filled in as we rely on it for login details..
- inputType: 'password',
- xtype : 'SecurePass',
+ allowBlank : false, // must be filled in as we rely on it for login details..
+ //inputType: 'password',
+ xtype : 'TextField',
width : 220,
imageRoot : rootURL + '/Pman/templates/images'
},
name : 'passwd2',
fieldLabel : "Password (type again to confirm)",
value : '',
- allowBlank : true, // must be filled in as we rely on it for login details..
+ allowBlank : false, // must be filled in as we rely on it for login details..
inputType: 'password',
xtype : 'TextField',
width : 220