kompass/modules/PasswordStrength/includes/password_strength_rules.php

10 lines
349 B
PHP
Raw Permalink Normal View History

2024-02-26 14:47:51 +01:00
<?php
function kompass_get_minimal_password_strength() {
$minPasswordStrength = get_option('kompass_password_minimal_strength', 1);
$possibleStrengths = ['1' => 'short, bad, good, strong',
'2' => 'good, strong',
'3' => 'strong'];
return ' ' . $possibleStrengths[$minPasswordStrength];
}