Skip to content

Commit

Permalink
Merge pull request #11476 from creative-commoners/pulls/6/pw-strength
Browse files Browse the repository at this point in the history
API Change default password strength from strong to medium
  • Loading branch information
GuySartorelli authored Nov 25, 2024
2 parents 35371dd + 377c18b commit 574b4e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Forms/ConfirmedPasswordField.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ConfirmedPasswordField extends FormField
* Minimum password strength if requireStrongPassword is true
* See https://symfony.com/doc/current/reference/constraints/PasswordStrength.html#minscore
*/
private int $minPasswordStrength = PasswordStrength::STRENGTH_STRONG;
private int $minPasswordStrength = PasswordStrength::STRENGTH_MEDIUM;

/**
* Callback used to generate a random password if $this->canBeEmpty is true and the field is left blank
Expand Down
2 changes: 1 addition & 1 deletion src/Security/Validation/EntropyPasswordValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class EntropyPasswordValidator extends PasswordValidator
* The strength of a valid password.
* See https://symfony.com/doc/current/reference/constraints/PasswordStrength.html#minscore
*/
private static int $password_strength = PasswordStrength::STRENGTH_STRONG;
private static int $password_strength = PasswordStrength::STRENGTH_MEDIUM;

public function validate(string $password, Member $member): ValidationResult
{
Expand Down

0 comments on commit 574b4e8

Please sign in to comment.