Skip to content

Commit

Permalink
Add notes about not all password strength drivers supporting score up…
Browse files Browse the repository at this point in the history
… to 5 (#9751)
  • Loading branch information
alecpl committed Jan 26, 2025
1 parent 454a6e1 commit fa1f3bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/password/README
Original file line number Diff line number Diff line change
Expand Up @@ -446,14 +446,14 @@

Driver using "Have I been pwned?" (https://haveibeenpwned.com/Passwords) API to
check that entered passwords aren't already compromised (i.e., commonly known).
The check is performed locally, the actual password is *not* transmitted anywhere else.
The check is performed locally, the actual password is *not* transmitted anywhere.

Example configuration:

$config['password_strength_driver'] = 'pwned';
$config['password_minimum_score'] = 3;

See the driver implementation file for more documentation.
Maximum supported score for this driver is 3. See the driver implementation file for more documentation.


3. Driver API
Expand Down
1 change: 1 addition & 0 deletions plugins/password/config.inc.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ $config['password_minimum_length'] = 8;

// Require the new password to have at least the specified strength score.
// Note: Password strength is scored from 1 (week) to 5 (strong).
// Note: Some strength drivers (e.g. pwned) do not support full range.
$config['password_minimum_score'] = 0;

// Enables logging of password changes into logs/password
Expand Down

0 comments on commit fa1f3bd

Please sign in to comment.