| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class PasswordValidation implements Rule |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * This Password Validation rule should be referenced wherever we need the user input their password on the site. |
||
| 9 | * The rules used on their passwords are; |
||
| 10 | * 1) Password is required. |
||
| 11 | * 2) Must be at least 8 characters |
||
| 12 | * 3) The password must contain at least one character from the following categories: |
||
| 13 | * lower-case characters (a-z), upper-case characters (A-Z), |
||
| 14 | * digits (0-9), and non-alphanumeric symbols (%, $, !, etc.). |
||
| 15 | * Guide used by Polivas Korop |
||
| 16 | * https://laraveldaily.com/how-to-create-custom-validation-rules-laravel/ |
||
| 17 | */ |
||
| 18 | |||
| 19 | public function PasswordCheck ($password) { |
||
| 25 | ); |
||
| 26 | |||
| 27 | } |
||
| 28 | |||
| 29 | public function message() { |
||
| 38 |