Threaded View

  1. #21
    Ext User xpressive's Avatar
    Join Date
    Oct 2007
    Posts
    7
    Vote Rating
    0
    xpressive is on a distinguished road

      0  

    Default client side validation of the entered password

    client side validation of the entered password


    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 ...
    Attached Files

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar