Plugin password strength example

Adds a password strength bar below the password field indicating the password strength. Please note that it shows only strength of password, it doesn't prevent submission if password is weak.

  
                            $pdocrud = new PDOCrud();
                            $pdocrud->fieldCssClass("password", array("password"));// add css classes to apply plugin later on that css class
                            $pdocrud->addPlugin("bootstrap-pwstrength");//to add plugin      
                            $pdocrud->formFields(array("first_name","last_name","user_name","password"));
                            echo $pdocrud->dbTable("users")->render("insertform");
                            //optional parameters for the bootstrap pwstrength plugin
                            $params["ui"] = array("showProgressBar"=> "true");
                            $params["common"] = array("showVerdictsInsideProgressBar"=> "true");
                            $params["rules"] = array("wordRepetitions"=> "true");
                            
                            echo $pdocrud->loadPluginJsCode("bootstrap-pwstrength",".password",$params);//to add plugin call on class .password elements
                            

Plugin Password Strength example - PDOCrud