Horje
password strength php Code Example
password strength php
public function checkPassword($pwd, &$errors) {
    $errors_init = $errors;

    if (strlen($pwd) < 8) {
        $errors[] = "Password too short!";
    }

    if (!preg_match("#[0-9]+#", $pwd)) {
        $errors[] = "Password must include at least one number!";
    }

    if (!preg_match("#[a-zA-Z]+#", $pwd)) {
        $errors[] = "Password must include at least one letter!";
    }     

    return ($errors == $errors_init);
}




Php

Related
how refresh the record of data in laravel Code Example how refresh the record of data in laravel Code Example
define("ROOT PATH", __DIR__); Code Example define("ROOT PATH", __DIR__); Code Example
php remove stop words from string Code Example php remove stop words from string Code Example
php random number Code Example php random number Code Example
get url parameters in laravel blade Code Example get url parameters in laravel blade Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12