// Password strenght

$( document ).ready(function () {
        var initialized = false;
        var input = $(".pwd-strength");

        // var verd_array = pwdstrarray;

        input.keydown(function () {
            if (initialized === false) {
                // set base options
                input.pwstrength({
                    common:{raisePower: 1.4},
                    rules:{minChar: 8},
                    ui:{
                        showVerdicts:false,
                        showProgressBar:false,
                        colorClasses:[
                            "danger",
                            "warning",
                            "warning",
                            "warning",
                            "warning",
                            "success"
                        ],
                        showStatus:true,
                        // verdicts: [
                        //     verd_array.weak,
                        //     verd_array.normal,
                        //     verd_array.medium,
                        //     verd_array.strong,
                        //     verd_array.vstrong
                        // ],
                        scores: [17, 26, 40, 50, 60]
                    },
                });
                // set as initialized
                initialized = true;
            }
        });
});
