Skip to content

Commit

Permalink
fix: Increased minimum password length to 12 chars (CNIL)
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Jan 28, 2025
1 parent 5ad1f25 commit 571ebd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/RoadizCoreBundle/src/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class User extends AbstractHuman implements UserInterface, AdvancedUserInterface
* Plain password. Used for model validation.
* **Must not be persisted.**.
*/
#[PasswordStrength(minStrength: 3, minLength: 8)]
#[PasswordStrength(minStrength: 3, minLength: 12)]
#[Serializer\Groups(['user:write'])]
#[Assert\NotBlank(groups: ['no_empty_password'])]
private ?string $plainPassword = null;
Expand Down

0 comments on commit 571ebd8

Please sign in to comment.