very nice feature!
I have added a function to provide client side validation of enterd password.
Maybe it is helpful for somebody
Code:
/**
* validate the strength of the entered password, based on the score
* Private function
*/
validateValue : function(value){
if(!Ext.ux.PasswordMeter.superclass.validateValue.call(this, value)){
return false;
}
if(value.length < 1){ // if it's blank and textfield didn't flag it then it's valid
return true;
}
var nScore = this.calcStrength(value);
var minStrength = 25;
if (nScore < minStrength) {
this.markInvalid('The strength of your password is not enough!');
this.isValid = false;
return false;
}
return true;
},
Full source is attached below ...