Show current pw policy in register page

Also adds a warning for when pw policy is set to off
This commit is contained in:
2021-01-06 03:48:14 +00:00
parent 42868be96e
commit aa2bfac3e5
3 changed files with 63 additions and 25 deletions

View File

@@ -94,7 +94,7 @@ class RegisterController extends Controller
break;
case 'medium':
$password = ['required', 'string', 'confirmed', 'regex:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[#?!@$%^&*-]).{10,}$/'];
$password = ['required', 'string', 'confirmed', 'regex:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[#?!@$%^&*-]).{12,}$/'];
break;
case 'high':