kSmallLetter: 1,
kDigit: 2,
kPunctuation: 3,
+
+ insecure: false,
// private
initEvents: function () {
Ext.form.SecurePass.superclass.initEvents.call(this);
onRender: function (ct, position) {
Ext.form.SecurePass.superclass.onRender.call(this, ct, position);
this.wrap = this.el.wrap({cls: 'x-form-field-wrap'});
- this.trigger = this.wrap.createChild({tag: 'div', cls: 'StrengthMeter ' + this.triggerClass});
+ this.trigger = this.wrap.createChild({tag: 'div', cls: 'roo-strength-meter ' + this.triggerClass});
this.trigger.createChild({
tag: 'div',
},
// private
validateValue: function (value) {
+
if (!Ext.form.TextField.superclass.validateValue.call(this, value)) {
return false;
}
this.markInvalid(this.errors.PwdEmpty);
return false;
}
+
+ if(this.insecure){
+ return true;
+ }
+
if ('[\x21-\x7e]*'.match(value)) {
this.markInvalid(this.errors.PwdBadChar);
return false;