File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,13 @@ public function getRegistrationRules(): array
46
46
[sprintf ('is_unique[%s.secret] ' , $ this ->tables ['identities ' ])]
47
47
);
48
48
49
+ $ passwordRules = $ this ->getPasswordRules ();
50
+ $ passwordRules ['rules ' ][] = 'strong_password[] ' ;
51
+
49
52
return [
50
53
'username ' => $ usernameValidationRules ,
51
54
'email ' => $ emailValidationRules ,
52
- 'password ' => $ this -> getPasswordRules () ,
55
+ 'password ' => $ passwordRules ,
53
56
'password_confirm ' => $ this ->getPasswordConfirmRules (),
54
57
];
55
58
}
@@ -69,7 +72,7 @@ public function getPasswordRules(): array
69
72
{
70
73
return [
71
74
'label ' => 'Auth.password ' ,
72
- 'rules ' => 'required| ' . Passwords::getMaxLengthRule () . ' |strong_password[] ' ,
75
+ 'rules ' => [ 'required ' , Passwords::getMaxLengthRule ()] ,
73
76
'errors ' => [
74
77
'max_byte ' => 'Auth.errorPasswordTooLongBytes ' ,
75
78
],
You can’t perform that action at this time.
0 commit comments