@php /** * Live password checklist - the rules the validator enforces, one row each, ticked as the * visitor types (app.js: [data-pw-rules]). Replaces the old one-sentence hint so the * conditions are visible AND their state is, instead of a sentence the visitor has to parse. * * @var string $for id of the password input this list watches * @var int $min minimum length (mirrors Validator::password's $minLen) * @var bool $full true = also uppercase / number / symbol (Validator::password); false = length only * @var string $id element id, so an input's aria-describedby can keep pointing at the rules */ $for = (string) ($for ?? 'password'); $min = (int) ($min ?? 12); $full = $full ?? true; $id = (string) ($id ?? ($for . '-hint')); @endphp