Skip to content

Commit

Permalink
Trivial: set check_pwned_passwords in class configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDPC committed Oct 7, 2021
1 parent 24e3f72 commit 90d7a19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Models/Pwnage.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ final class Pwnage
*/
private static $check_breached_accounts = false;

/**
* By default, check against configured pwned password corpus
* @var boolean
*/
private static $check_pwned_passwords = true;

/**
* Whether to allow pwned passwords
* If false this adds a validation warning and records the fact against the member
Expand Down

0 comments on commit 90d7a19

Please sign in to comment.