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) {
- Roo.log('validateValue');
- if(this.insecure){
- Roo.log('in');
- return true;
- }
+
if (!Ext.form.TextField.superclass.validateValue.call(this, value)) {
return false;
}
this.markInvalid(this.errors.PwdEmpty);
return false;
}
- if ('[\x21-\x7e]*'.match(value)) {
+
+ if(this.insecure){
+ return true;
+ }
+
+ if (value.match(/[\x21-\x7e]*/)) {
this.markInvalid(this.errors.PwdBadChar);
return false;
}