Warning: include(../../script/pdocrud.php): Failed to open stream: No such file or directory in /var/sentora/hostdata/digjainwi/public_html/allsanginfodev/demo/pages/plugin-pwstrength.php on line 1

Warning: include(../../script/pdocrud.php): Failed to open stream: No such file or directory in /var/sentora/hostdata/digjainwi/public_html/allsanginfodev/demo/pages/plugin-pwstrength.php on line 1

Warning: include(): Failed opening '../../script/pdocrud.php' for inclusion (include_path='.:/opt/remi/php81/root/usr/share/pear:/opt/remi/php81/root/usr/share/php:/usr/share/pear:/usr/share/php') in /var/sentora/hostdata/digjainwi/public_html/allsanginfodev/demo/pages/plugin-pwstrength.php on line 1
PDOCrud - CRUD application generator for PHP and Mysql, Pgsql and Sqlite database.

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


Fatal error: Uncaught Error: Class "PDOCrud" not found in /var/sentora/hostdata/digjainwi/public_html/allsanginfodev/demo/pages/plugin-pwstrength.php:55 Stack trace: #0 {main} thrown in /var/sentora/hostdata/digjainwi/public_html/allsanginfodev/demo/pages/plugin-pwstrength.php on line 55