Add notes about not all password strength drivers supporting score up to 5 (#9751)

This commit is contained in:
Aleksander Machniak
2025-01-26 15:04:17 +01:00
parent 454a6e13a1
commit fa1f3bd852
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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